Thread: gets("rope") ... help pls

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Registered User Invincible's Avatar
    Join Date
    Feb 2002
    Posts
    210

    gets("rope") ... help pls

    Been working on this all day...

    I want to give the user 2 options. He or she can either enter a number between 2 - 100, or type "exit." This has to happen on the same command line because I want the user to have the option of exiting at any time. However, If I scan in an integer, I can not compare the strings, and if I scan in a string I cannot properly compare the integers.

    I have tried itoa(), but I converts the string to that long, frustrating negative number, so I can't compare that way.
    Last edited by Invincible; 02-12-2002 at 02:16 AM.
    "The mind, like a parachute, only functions when open."

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Basic port scanner code .. pls help ???
    By intruder in forum C Programming
    Replies: 18
    Last Post: 03-13-2003, 08:47 AM
  2. i dont know what to do. pls. help!!!!
    By Unregistered in forum C++ Programming
    Replies: 14
    Last Post: 03-14-2002, 03:24 PM
  3. help me pls..... :(
    By mocha_frap024 in forum C++ Programming
    Replies: 2
    Last Post: 02-22-2002, 10:46 AM
  4. pls help me!!
    By hanseler in forum C++ Programming
    Replies: 1
    Last Post: 12-05-2001, 08:46 PM
  5. Pls Help Me In This Question!!!
    By Joanna in forum Windows Programming
    Replies: 1
    Last Post: 10-20-2001, 02:05 PM