Click here to Skip to main content
15,890,336 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: C++ Question. Pin
Prakash Nadar15-Nov-03 1:00
Prakash Nadar15-Nov-03 1:00 
GeneralRe: C++ Question. Pin
Rickard Andersson2015-Nov-03 1:10
Rickard Andersson2015-Nov-03 1:10 
GeneralRe: C++ Question. Pin
WREY15-Nov-03 7:15
WREY15-Nov-03 7:15 
GeneralRe: C++ Question. Pin
WREY15-Nov-03 7:09
WREY15-Nov-03 7:09 
GeneralRe: C++ Question. Pin
Kevin McFarlane15-Nov-03 4:12
Kevin McFarlane15-Nov-03 4:12 
GeneralRe: C++ Question. Pin
WREY15-Nov-03 7:23
WREY15-Nov-03 7:23 
GeneralRe: C++ Question. Pin
Kevin McFarlane15-Nov-03 10:00
Kevin McFarlane15-Nov-03 10:00 
GeneralRe: C++ Question. Pin
WREY15-Nov-03 10:45
WREY15-Nov-03 10:45 
Thanks for your reply.

Even stranger! that you have VC++ 6, SP3 and claim it works for you, while I with VC++ 6, SP5, cannot get the kind of behavior I'm looking for.

The problem (it looks more and more to be), is that 'getline() isn't receiving any data from the input queue, because a 'cout' of the string (which is the input buffer) reveals NOTHING in it. Consequently, when the test is made to see if data is absent, the test succeeds because NO data has been collected and is the reason why the invalid segment gets activated.

So the problem doesn't seem to rest with 'string', but more with 'getline()'.

To be honest with you, 'getline()' has been a problem child for me every time I try to use it, and this time is no exception.

Sigh | :sigh:

William

Fortes in fide et opere!
GeneralRe: C++ Question. Pin
Prakash Nadar15-Nov-03 19:58
Prakash Nadar15-Nov-03 19:58 
GeneralRe: C++ Question. Pin
Steve Messer15-Nov-03 5:40
Steve Messer15-Nov-03 5:40 
GeneralRe: C++ Question. Pin
Jeryth15-Nov-03 7:12
Jeryth15-Nov-03 7:12 
GeneralRe: C++ Question. Pin
WREY15-Nov-03 8:37
WREY15-Nov-03 8:37 
GeneralRe: C++ Question. Pin
Michael Gunlock15-Nov-03 13:44
Michael Gunlock15-Nov-03 13:44 
GeneralRe: C++ Question. Pin
WREY15-Nov-03 14:16
WREY15-Nov-03 14:16 
GeneralRe: C++ Question. Pin
WREY15-Nov-03 21:00
WREY15-Nov-03 21:00 
GeneralRe: C++ Question. Pin
Stye18-Nov-03 17:40
Stye18-Nov-03 17:40 
GeneralRe: C++ Question. Pin
WREY18-Nov-03 18:28
WREY18-Nov-03 18:28 
GeneralRe: C++ Question. Pin
Stye19-Nov-03 19:46
Stye19-Nov-03 19:46 
GeneralRe: C++ Question. Pin
WREY19-Nov-03 20:41
WREY19-Nov-03 20:41 
GeneralRe: C++ Question. Pin
Stye20-Nov-03 5:52
Stye20-Nov-03 5:52 
GeneralRe: C++ Question. Pin
Stye20-Nov-03 18:19
Stye20-Nov-03 18:19 
QuestionI just bought a PocketPC today. I wonder if I can use VC++ to write programs for it? Pin
Link260014-Nov-03 19:23
Link260014-Nov-03 19:23 
AnswerRe: I just bought a PocketPC today. I wonder if I can use VC++ to write programs for it? Pin
Prakash Nadar14-Nov-03 21:14
Prakash Nadar14-Nov-03 21:14 
GeneralRe: I just bought a PocketPC today. I wonder if I can use VC++ to write programs for it? Pin
Link260014-Nov-03 22:31
Link260014-Nov-03 22:31 
GeneralRe: I just bought a PocketPC today. I wonder if I can use VC++ to write programs for it? Pin
Prakash Nadar15-Nov-03 1:06
Prakash Nadar15-Nov-03 1:06 

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.