Click here to Skip to main content
15,908,455 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Bad Coding? Pin
Igor Proskuriakov30-Jan-02 7:15
Igor Proskuriakov30-Jan-02 7:15 
GeneralRe: Bad Coding? Pin
James R. Twine30-Jan-02 8:48
James R. Twine30-Jan-02 8:48 
AnswerRe: Bad Coding? Pin
Chris Losinger30-Jan-02 9:02
professionalChris Losinger30-Jan-02 9:02 
AnswerRe: Bad Coding? Pin
Joaquín M López Muñoz30-Jan-02 9:08
Joaquín M López Muñoz30-Jan-02 9:08 
GeneralChange the date of file! Pin
Mazdak30-Jan-02 6:14
Mazdak30-Jan-02 6:14 
GeneralRe: Change the date of file! Pin
Ravi Bhavnani30-Jan-02 6:24
professionalRavi Bhavnani30-Jan-02 6:24 
Generalstring usage problem Pin
30-Jan-02 6:00
suss30-Jan-02 6:00 
GeneralRe: string usage problem Pin
Joaquín M López Muñoz30-Jan-02 7:51
Joaquín M López Muñoz30-Jan-02 7:51 
The only thing your program is missing is an #include <iostream> to use cout. Apart from this, it compiles and works fine.
You may try stripping down your program to a twenty line file (i.e. removing the "irrelevant" lines). My guess is that in the process the bug will dissapear, and possibly this will shed some light.

As for the second question, yes you can use cin>>yuorname, but that only gets till the first whitespace. Use getline(cin,yourname) for retrieving entire lines.

Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
GeneralC++ Macros in Visual C++ Pin
30-Jan-02 5:18
suss30-Jan-02 5:18 
GeneralRe: C++ Macros in Visual C++ Pin
Bill Wilson30-Jan-02 10:14
Bill Wilson30-Jan-02 10:14 
GeneralForaging for Suggestions Pin
Roger Wright30-Jan-02 5:05
professionalRoger Wright30-Jan-02 5:05 
Generala question about exit() method Pin
Gérald Mercet30-Jan-02 4:59
Gérald Mercet30-Jan-02 4:59 
GeneralRe: a question about exit() method Pin
Ravi Bhavnani30-Jan-02 5:05
professionalRavi Bhavnani30-Jan-02 5:05 
GeneralRe: a question about exit() method Pin
Gérald Mercet30-Jan-02 5:17
Gérald Mercet30-Jan-02 5:17 
Generalloading bitmaps Pin
Rajveer30-Jan-02 4:13
Rajveer30-Jan-02 4:13 
GeneralRe: loading bitmaps Pin
.:: RockNix ::.30-Jan-02 4:12
.:: RockNix ::.30-Jan-02 4:12 
GeneralRe: loading bitmaps Pin
lucy30-Jan-02 6:40
lucy30-Jan-02 6:40 
GeneralRe: loading bitmaps Pin
Michael Dunn30-Jan-02 6:45
sitebuilderMichael Dunn30-Jan-02 6:45 
GeneralVC6 Pin
30-Jan-02 3:01
suss30-Jan-02 3:01 
GeneralRe: VC6 Pin
Rüpel30-Jan-02 3:04
Rüpel30-Jan-02 3:04 
GeneralRe: VC6 Pin
30-Jan-02 3:56
suss30-Jan-02 3:56 
GeneralRe: VC6 Pin
Jon Hulatt30-Jan-02 6:44
Jon Hulatt30-Jan-02 6:44 
GeneralRe: VC6 Pin
31-Jan-02 0:25
suss31-Jan-02 0:25 
GeneralRe: VC6 Pin
Jon Hulatt31-Jan-02 0:32
Jon Hulatt31-Jan-02 0:32 
GeneralModifyStyle() has no effect Pin
Rüpel30-Jan-02 2:51
Rüpel30-Jan-02 2:51 

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.