Click here to Skip to main content
15,905,414 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: "string" problem. Pin
Joaquín M López Muñoz28-Sep-03 23:25
Joaquín M López Muñoz28-Sep-03 23:25 
GeneralRe: "string" problem. Pin
WREY29-Sep-03 8:14
WREY29-Sep-03 8:14 
GeneralRe: "string" problem. Pin
Joaquín M López Muñoz29-Sep-03 9:33
Joaquín M López Muñoz29-Sep-03 9:33 
GeneralRe: "string" problem. Pin
WREY29-Sep-03 9:45
WREY29-Sep-03 9:45 
GeneralRe: "string" problem. Pin
Joaquín M López Muñoz29-Sep-03 9:50
Joaquín M López Muñoz29-Sep-03 9:50 
GeneralRe: "string" problem. Pin
WREY29-Sep-03 10:07
WREY29-Sep-03 10:07 
GeneralRe: "string" problem. Pin
David Crow29-Sep-03 5:42
David Crow29-Sep-03 5:42 
GeneralRe: "string" problem. Pin
WREY29-Sep-03 8:34
WREY29-Sep-03 8:34 
Thanks for replying.

Your sample gave the same result as:
while(str.end()!="\r");
which is, "receiving any number of strings and growing the vector, but unable to exit the loop."

The intent is to receive as many strings as inputted, and exit when finished.

The exiting part is the whole problem, because if I were to just enter one string, I can exit with:
while(str.end()=="\r");      // whitespace notwithstanding
I've tried a number of things while inside the loop (e.g. conducting certain discrete test and setting boolean values to signal to the loop that I'm ready to exit), and the best I could have ended up with came down to one of the two options I presented in my original posting.

Unsure | :~

William

Fortes in fide et opere!
GeneralRe: "string" problem. Pin
David Crow29-Sep-03 9:38
David Crow29-Sep-03 9:38 
GeneralRe: "string" problem. Pin
WREY29-Sep-03 9:53
WREY29-Sep-03 9:53 
GeneralSEC_WINNT_AUTH_IDENTITY_EXW Pin
Bernhard28-Sep-03 20:58
Bernhard28-Sep-03 20:58 
GeneralNT service stop event Pin
Aqualic28-Sep-03 20:55
Aqualic28-Sep-03 20:55 
GeneralClipboard content as bitmap Pin
Thoppae28-Sep-03 20:47
Thoppae28-Sep-03 20:47 
Generalabout CListCtrl Pin
muddog28-Sep-03 20:37
muddog28-Sep-03 20:37 
GeneralRe: about CListCtrl Pin
chifor28-Sep-03 20:53
chifor28-Sep-03 20:53 
GeneralRe: about CListCtrl Pin
Abin28-Sep-03 22:19
Abin28-Sep-03 22:19 
QuestionProperty Pages Help??? Pin
xxhimanshu28-Sep-03 20:12
xxhimanshu28-Sep-03 20:12 
AnswerRe: Property Pages Help??? Pin
Steve Mayfield28-Sep-03 20:56
Steve Mayfield28-Sep-03 20:56 
GeneralError C2679 Pin
esepich28-Sep-03 19:57
esepich28-Sep-03 19:57 
GeneralRe: Error C2679 Pin
KarstenK28-Sep-03 20:36
mveKarstenK28-Sep-03 20:36 
GeneralRe: Error C2679 Pin
Steve Mayfield28-Sep-03 20:48
Steve Mayfield28-Sep-03 20:48 
QuestionHow to make Virtual CDROM / Virtual Device Driver ? Pin
silver_csc28-Sep-03 19:56
silver_csc28-Sep-03 19:56 
GeneralRetriving System Device Icons Pin
Member 40481328-Sep-03 19:46
Member 40481328-Sep-03 19:46 
GeneralRe: Retriving System Device Icons Pin
David Crow29-Sep-03 5:51
David Crow29-Sep-03 5:51 
GeneralRecently Used File Pin
vancouver77728-Sep-03 19:36
vancouver77728-Sep-03 19:36 

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.