Thread: structs and string compare

  1. #1
    Registered User mouse163's Avatar
    Join Date
    Dec 2002
    Posts
    49

    structs and string compare

    thanks guys for all your help so far...i think i have the loading part of this program ok, i then am using a function to output specs about the month and a total days up to and including that month.
    (would you mind looking at the file to see if it's a mess or okay?) it runs and works well.
    The next thing I have to do is input a month name (string) and output the same info.
    I am reeeeally grreen with strings and wonder if there is a way i can begin with
    "enter month number OR name" and get the same output using a diff function for each.
    I know I have to use string compare, but like I said I am trying hard to get it but haven't yet.
    Thanks.so much. I have learned MORE at this forum than anywhere else!
    I have included the program as a link.

    http://micheles-myocardium.com/C++/3ab.txt //this is my program

    http://micheles-myocardium.com/C++/IF3abc.txt //this is the data

  2. #2
    Registered User
    Join Date
    Nov 2001
    Posts
    1,348
    Post a specific problem.

    Kuphryn

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 9
    Last Post: 03-17-2006, 12:44 PM
  2. Replies: 41
    Last Post: 07-04-2004, 03:23 PM
  3. copying a string to an array
    By sameintheend01 in forum C++ Programming
    Replies: 7
    Last Post: 03-04-2003, 07:50 PM
  4. passing structs to functions?
    By Neildadon in forum C++ Programming
    Replies: 1
    Last Post: 12-13-2002, 04:31 PM
  5. sorting an array of structs
    By jo_jo2222 in forum C++ Programming
    Replies: 2
    Last Post: 04-08-2002, 11:52 PM