When I try to input a line of text, all I get back are numbers. Is there any way to convert these?
When I try to input a line of text, all I get back are numbers. Is there any way to convert these?
Can you show us how you're doing it?
Naturally I didn't feel inspired enough to read all the links for you, since I already slaved away for long hours under a blistering sun pressing the search button after typing four whole words! - Quzah
You. Fetch me my copy of the Wall Street Journal. You two, fight to the death - Stewie
I'm inputting it as p1n
cin>>p1n;
then I put in some text like "Hello"
then when it outputs, it's all numbers like 4198952
You have to show us what type that variable is, and how you are outputting the value.
Are you doing some obvious error like this:
?Code:char Buffer[MAXBUFFER]; cin >> Buffer; cout << (int)Buffer;
MagosX.com
Give a man a fish and you feed him for a day.
Teach a man to fish and you feed him for a lifetime.