Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
01/01/05 20:46
Read: times


 
#84209 - brackets ?
Responding to: ???'s previous message
The code is not to complex for the compiler.
But it seems, there are missed some brackets

Also I would suggest some slightly changes:

bit IsLeapYear( unsigned int y )
{
         if( ((y & 3) == 0) && (((y % 100) != 0) || ((y % 400) == 0)) )
              return( 1 );
         else
              return( 0 );
}



And I faced never problems on testing my 8051 routines with an old Borland-C 3.0 DOS version.


Peter


List of 25 messages in thread
TopicAuthorDate
Keil C Code not working            01/01/70 00:00      
   Desktop turbo c++ ?            01/01/70 00:00      
      Slightly??!!            01/01/70 00:00      
      agreed            01/01/70 00:00      
         i got the math to do div / multiply            01/01/70 00:00      
         Debugger? Simulator? Maths?            01/01/70 00:00      
            Question...            01/01/70 00:00      
               Please use Correct Terms            01/01/70 00:00      
            Re Andy Debugger, Simulator? Math            01/01/70 00:00      
         *unnecessarily* complex!            01/01/70 00:00      
            Re andy            01/01/70 00:00      
               Divide and Conquer!            01/01/70 00:00      
         Bad Burner?            01/01/70 00:00      
            Re Andy Bad Burner            01/01/70 00:00      
         Project Configuration?            01/01/70 00:00      
   debugging?            01/01/70 00:00      
      thanks for the link            01/01/70 00:00      
   Data Sizes - Lesson not yet learned?            01/01/70 00:00      
      Re Andy            01/01/70 00:00      
   brackets ?            01/01/70 00:00      
      (no) brackets            01/01/70 00:00      
   WriteCommandLCD ?            01/01/70 00:00      
      Re Andy            01/01/70 00:00      
         Problem not fixed yet?            01/01/70 00:00      
            Problem not fixed yet?            01/01/70 00:00      

Back to Subject List