Avatar
    Rating
    38
    Posts
    5291
    Creed
    Action
    Joined
    12.18.07

ʊIrishancest

Legally Certified Warthog Operator

One problem is that the real way you are supposed to compare strings is to use the srtcmp() function, with the two inputs being the two strings. I believe it returns 1 if true and something else if false. I'm not sure if it's case sensitive, but I believe it is. Also, if when you say you want to pause the program to mean you want it to wait for user input such as enter, there is a real way to do it but I can't remember off the top of my head. Anyways, I hope that was a bit of help.
05.30.08 10:22 pm

Replies

    • Avatar
      Rank
      Private
      Creed
      Role-Playing
      Joined
      12.27.07

    ɤ6od53nt

    Casts Magic Missile

    (as a note, there is no strgcpy() to my knowledge. it's properly spelled strcpy(). That's a fail on my part)

    It was a great help. for one thing, I'm being too slow today to remember strcmp(). I looked it up and made myself feel pretty much dumber than I already had been feeling today. Another thing, yes, it returns 1 if true, and pretty much any number BUT 1 if false. I have yet to figure out any pattern to what none "1" number the program picks.
    ---
    "For the Glory of my LORD God!" --outcome of my first program
    05.30.08 10:31 pm