Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

C++ Strings

Name: Anonymous 2006-03-09 6:24

Ok, I have some code that receives user input like this
getline(cin, tmptxt, '\n')

But every time I do this it returns null, and if I just do a old fashioned
cin >> tmptxt;

This one ends the string at the first space, like if I type 'how do i shot web' it will return as 'how'. I have tried this in C++ Strings and C-styled strings (char)

Another odd thing, if I run the first code posted in its own program, it works fine, but when I implement it to the program I am working on, it refuses to work. Is this my fault or somthing beyond my control?

Name: Anonymous 2006-03-09 7:36 (sage)

fGETs

Name: Anonymous 2006-03-09 8:23

anonymous, you are a god, thanks you

Name: Anonymous 2006-03-09 17:55

>>3
We know.

Name: Anonymous 2009-11-21 19:27

From a Jew's face
The wicked Devil speaks to us,
The Devil who, in every country,
Is known as an evil plague.

Would we from the Jew be free,
Again be cheeful and happy,
Then must youth fight with us
To get rid of the Jewish Devil.

Name: Anonymous 2010-06-02 13:15

WARNING: NECRO BUMP - DO NOT REPLY

Name: Anonymous 2010-06-02 15:41

>>2
I wish I could forGETs this thread.

Name: Anonymous 2011-02-02 23:27

Name: Anonymous 2012-03-28 2:17

my farts burn my anus
it hurts
in a good way

Name: Anonymous 2012-04-05 8:54

bump

Don't change these.
Name: Email:
Entire Thread Thread List