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.
Since you brought it up...
How does one go about opening more than one channel?
For instance,
if I cin >> string;
then I
cin >> newVariable
then newVariable = string
but let's say I want to 2 seperate inputs from the user before I
cout<< string
cout<< newVariable
I know it's a newbie question, but it continues to be a probelm
now you're really confusing me
isn't fopen a stdio function?
and stdio is a member of C, because that's also the header for the printf() function right?