Thread: novice help

  1. #1
    Registered User
    Join Date
    Jan 2010
    Posts
    1

    Smile novice help

    Assume the input is in the form of date-month-year, such as 20-january-2010, how would you read the date, the month and the year? Note in this case, the month is not a number. It is a string.

    i understand that
    day = int, month = str[size], year = int.

    Please help with the codes using scanf and printf. anyone? thank you!

  2. #2
    Registered User
    Join Date
    Sep 2006
    Posts
    8,868
    Nope, that's not what we do. We aren't homework doers. You do your own assignments, and we will

    << HELP >>

    if you get stuck on some aspect of C.

    So code up your program, and if you get stuck, then post up your code, and tell us what has you stumped. Not just, "it doesn't work".

  3. #3
    spurious conceit MK27's Avatar
    Join Date
    Jul 2008
    Location
    segmentation fault
    Posts
    8,300
    Read some documentation, try some code, and then post it. You will have to do this anyway, and it is easier to explain by correcting mistakes
    C programming resources:
    GNU C Function and Macro Index -- glibc reference manual
    The C Book -- nice online learner guide
    Current ISO draft standard
    CCAN -- new CPAN like open source library repository
    3 (different) GNU debugger tutorials: #1 -- #2 -- #3
    cpwiki -- our wiki on sourceforge

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 10
    Last Post: 06-17-2005, 10:00 PM
  2. Novice trying to learn C++
    By dead in forum C++ Programming
    Replies: 10
    Last Post: 12-01-2003, 09:25 PM
  3. Rtfm
    By XSquared in forum A Brief History of Cprogramming.com
    Replies: 4
    Last Post: 03-13-2003, 05:19 PM
  4. how to read integers from a file( novice )
    By Gorgorath in forum C++ Programming
    Replies: 7
    Last Post: 10-12-2002, 04:25 AM
  5. help for a C novice
    By Unregistered in forum C Programming
    Replies: 8
    Last Post: 05-02-2002, 09:49 PM