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

quick question

Name: Anonymous 2007-05-04 15:05 ID:E3M9p2QX

C++.

I have an array of strings.
I want to read into this from cin until there is nothing left in the buffer.

i.e. input = "hello my name is anon"

i want the equivalent of

for(int i = 0; i < 5; i++)
    cin >> arrayName[i];

for any number of words

is there some sort of flag i can use?

Name: Anonymous 2007-05-04 15:31 ID:/blXXnrA

>>5
Not in the way you would want. If you really want to get to know C++, get used to that annoying feeling in your ass.

Name: Anonymous 2007-05-04 15:33 ID:poxlSgLA

Name: Anonymous 2007-05-04 15:36 ID:/blXXnrA

>>9
404 not found, etc. (which is a good thing in this situation. maybe this poor soul is still savable.)

Name: Anonymous 2007-05-04 15:41 ID:poxlSgLA

>>10
sir, you are a fucking moron, plz die.

Name: Anonymous 2007-05-04 15:44 ID:/blXXnrA

>>11
sir, you can't post a link, also you are trying to encourage the use of useless programming languages, RLY, RLY, PLZ PLZ DIE.

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