Click here to Skip to main content
15,912,897 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Queue and Stacks Pin
Stephen Hewitt6-Apr-06 14:08
Stephen Hewitt6-Apr-06 14:08 
QuestionRe: Queue and Stacks Pin
David Crow6-Apr-06 3:05
David Crow6-Apr-06 3:05 
AnswerRe: Queue and Stacks Pin
KOOOSHA6-Apr-06 4:34
KOOOSHA6-Apr-06 4:34 
GeneralRe: Queue and Stacks Pin
David Crow6-Apr-06 4:43
David Crow6-Apr-06 4:43 
QuestionProblem in Printing (Laser and DotMatrix printers) Pin
Sarvan AL5-Apr-06 22:43
Sarvan AL5-Apr-06 22:43 
Questionabout " string " " vector " Pin
applechen5-Apr-06 22:31
applechen5-Apr-06 22:31 
AnswerRe: about " string " " vector " Pin
toxcct5-Apr-06 22:38
toxcct5-Apr-06 22:38 
GeneralRe: about " string " " vector " Pin
applechen5-Apr-06 22:52
applechen5-Apr-06 22:52 
Thanks a lot!

and indeed there is another question:

void main ()
{

string word;
vector < string > text;

while ( cin >> word)
{
text.push_back( word );
}

cout << "words read are: \n";
for ( int ix = 0; ix < text.size(); ++ix)
{
cout << text[ ix ] << ' ';
}
cout << endl;



}

when run it, I should input the words into the " string word " from the keyboard, but how to terminate the input?
how to set ( cin >> word) " false " ?

-- modified at 4:53 Thursday 6th April, 2006
GeneralRe: about &quot; string &quot; &quot; vector &quot; Pin
toxcct5-Apr-06 23:00
toxcct5-Apr-06 23:00 
AnswerRe: about " string " " vector " Pin
Cedric Moonen5-Apr-06 23:34
Cedric Moonen5-Apr-06 23:34 
GeneralRe: about " string " " vector " Pin
toxcct5-Apr-06 23:37
toxcct5-Apr-06 23:37 
GeneralRe: about " string " " vector " Pin
Cedric Moonen5-Apr-06 23:51
Cedric Moonen5-Apr-06 23:51 
GeneralRe: about &quot; string &quot; &quot; vector &quot; Pin
toxcct5-Apr-06 23:52
toxcct5-Apr-06 23:52 
GeneralRe: about &quot; string &quot; &quot; vector &quot; Pin
Cedric Moonen5-Apr-06 23:56
Cedric Moonen5-Apr-06 23:56 
GeneralRe: about " string " " vector " Pin
Rob Caldecott5-Apr-06 23:59
Rob Caldecott5-Apr-06 23:59 
GeneralRe: about &quot; string &quot; &quot; vector &quot; Pin
toxcct6-Apr-06 0:16
toxcct6-Apr-06 0:16 
GeneralRe: about " string " " vector " Pin
Rage6-Apr-06 2:03
professionalRage6-Apr-06 2:03 
AnswerRe: about &amp;quot; string &amp;quot; &amp;quot; vector &amp;quot; Pin
Stephen Hewitt6-Apr-06 0:59
Stephen Hewitt6-Apr-06 0:59 
Questionadding items to list box Pin
parichaybp5-Apr-06 22:09
parichaybp5-Apr-06 22:09 
AnswerRe: adding items to list box Pin
Hamid_RT5-Apr-06 22:15
Hamid_RT5-Apr-06 22:15 
AnswerRe: adding items to list box Pin
Hamid_RT5-Apr-06 22:25
Hamid_RT5-Apr-06 22:25 
GeneralRe: adding items to list box Pin
parichaybp5-Apr-06 23:33
parichaybp5-Apr-06 23:33 
GeneralRe: adding items to list box Pin
toxcct5-Apr-06 23:35
toxcct5-Apr-06 23:35 
GeneralRe: adding items to list box Pin
parichaybp5-Apr-06 23:43
parichaybp5-Apr-06 23:43 
GeneralRe: adding items to list box Pin
toxcct5-Apr-06 23:46
toxcct5-Apr-06 23:46 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.