Like Tree1Likes

if statement problem.....

This is a discussion on if statement problem..... within the C++ Programming forums, part of the General Programming Boards category; Originally Posted by Sipher ( seems noone reads my posts ), Not to worry Sipher, my friend... I read them. ...

  1. #16
    Banned
    Join Date
    Aug 2010
    Location
    Ontario Canada
    Posts
    9,547
    Quote Originally Posted by Sipher View Post
    ( seems noone reads my posts ),
    Not to worry Sipher, my friend... I read them.

    The thing is we still get leap years every 4 years...
    The exception is only on the century (i.e. even multiple of 100) where we only get one on every 4th century so in my solution I simply divided by 100 when we hit the even century and went from there.

  2. #17
    Programming Wraith GReaper's Avatar
    Join Date
    Apr 2009
    Location
    Greece
    Posts
    1,625
    Oh, I see. So, our codes are like one and the same by that perspect...
    Devoted my life to programming...

Page 2 of 2 FirstFirst 12
Popular pages Recent additions subscribe to a feed

Similar Threads

  1. ; problem near if statement
    By orhanli1 in forum C Programming
    Replies: 3
    Last Post: 01-17-2011, 06:42 AM
  2. problem with if statement
    By eagle0eyes in forum C Programming
    Replies: 13
    Last Post: 05-27-2010, 01:12 PM
  3. If Else statement problem
    By doofusboy in forum C Programming
    Replies: 2
    Last Post: 11-09-2005, 06:18 AM
  4. If statement re-do problem
    By RoD in forum Windows Programming
    Replies: 5
    Last Post: 09-11-2002, 04:46 PM
  5. having a problem with a FOR statement
    By jonesy in forum C Programming
    Replies: 3
    Last Post: 10-01-2001, 01:24 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21