Thread: Please Help Me Someone Pleeeeeasseee

  1. #1
    Please Help
    Guest

    Exclamation Please Help Me Someone Pleeeeeasseee

    I need anything, an kind of coding, any program, and words or phrases which I could use to answer this question

    Write a function ConvertToLast( ) that returns (not displays) a first-last formatted string ( e.g., “ Mel Gibson ”) from a string that was originally sent as an argument in last-comma-first format (e.g., “ Gibson, Mel “). Use the find( ) function to identify the position of the comma, and the substr( ) function to create the new parts. Assume there is a space after the comma.

  2. #2
    Unleashed
    Join Date
    Sep 2001
    Posts
    1,765
    Gee, I missed this one. Now I can read it twice.
    The world is waiting. I must leave you now.

  3. #3
    Assembler + Basic from 79
    Join Date
    Apr 2002
    Location
    Canada
    Posts
    22
    If ya give us your teachers name and phone number, we'll be glad to let him/her know your having trouble with this assignment.

    Twin engine aircraft are way better. If one engine quits the other takes you to the scene of the crash.

  4. #4
    Registered User
    Join Date
    Dec 2001
    Posts
    479
    lol that one was good

    to our guest dont ask for whole codes here please

  5. #5
    Just because ygfperson's Avatar
    Join Date
    Jan 2002
    Posts
    2,490
    cin both words, cout them in reverse order with a comma in the middle. easy.

  6. #6
    Registered User
    Join Date
    Dec 2001
    Posts
    479
    allright i'll help you this time

    but be more specific cause i didn't get much of it

  7. #7
    Registered User
    Join Date
    Oct 2001
    Posts
    2,934
    Here's the prototype:
    string ConvertToLast(string name)

    Now use the functions find() and substr() to form the new string, and this new string is your return value.

Popular pages Recent additions subscribe to a feed