Thread: Help Needed asap

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

    Help Needed asap

    hey all, i leaning how to do some c++ programming and am doing a tutorial but i am stuck completey and its doing my head in!!! i need to design and implement a program that will convert a date input by the user from the following format:

    DD/MM/YYYY (e.g, 01/01/2000)

    ... to the following output format:

    DD MONTH_NAME YEAR (e.g, 01 January 2000)


    Can anyone help me???

  2. #2
    Registered User
    Join Date
    Jan 2005
    Posts
    7,366
    Read the input into a string. Search for the first '/' character and copy the input before it into the new string for the day. Then search for the next '/' character and convert the string there to the spelled out month name using some sort of conversion function. There are lots of ways to do that, the crudest being a long set of if/else statements. Then the rest of the input string is the year and you can just tack that on to the end of the resulting string.

    Post your code and your specific problem if you are still having trouble.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. C++ Programmers needed ASAP in the San Francisco bay area, CA!
    By ITS in forum Projects and Job Recruitment
    Replies: 0
    Last Post: 08-13-2007, 03:18 PM
  2. Help Needed Please... Asap
    By Shabba in forum C Programming
    Replies: 2
    Last Post: 01-13-2004, 04:24 PM
  3. Help Needed Asap With Searching An Array!
    By HelpMe++ in forum C++ Programming
    Replies: 5
    Last Post: 05-23-2003, 04:44 AM
  4. program won't run properly, help needed asap
    By jlmac2001 in forum C Programming
    Replies: 2
    Last Post: 11-16-2002, 09:52 AM
  5. Help needed with a Project. ASAP Thanks
    By Shahram_z in forum C Programming
    Replies: 2
    Last Post: 10-31-2002, 03:12 PM