Thread: Year, month and day

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Registered User
    Join Date
    Oct 2006
    Posts
    28
    Thank you for help...


    It might be a stupid question, but will this work out with any date?

  2. #2
    Registered User
    Join Date
    Nov 2006
    Posts
    176
    all this does is print the values in the structure, which I supplied

    Code:
            today.day = 30;
            today.year = 2006;
            strcpy(today.month,"November");
    does it work with any date?

    if you mean can you change those values to any date, yes you should be able to.
    the month can be 10 characters long, since I was too lazy to figure out which month has the most letters in it. And actually count how many. So as long as no month has more than 9 letters it should be fine.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Calendar Problem
    By wordup in forum C Programming
    Replies: 7
    Last Post: 10-29-2002, 03:36 PM
  2. error with code
    By duffy in forum C Programming
    Replies: 8
    Last Post: 10-22-2002, 09:45 PM
  3. Printing weekday
    By sworc66 in forum C Programming
    Replies: 12
    Last Post: 09-13-2002, 07:03 AM
  4. debug program
    By new_c in forum C Programming
    Replies: 3
    Last Post: 03-18-2002, 11:50 PM
  5. Simplified code
    By soonerfan in forum C Programming
    Replies: 2
    Last Post: 12-05-2001, 03:50 PM