Click here to Skip to main content
15,900,724 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: A strange debug error Pin
Waldermort14-Sep-06 9:11
Waldermort14-Sep-06 9:11 
GeneralRe: A strange debug error Pin
Zac Howland14-Sep-06 9:36
Zac Howland14-Sep-06 9:36 
QuestionRe: A strange debug error Pin
David Crow14-Sep-06 8:50
David Crow14-Sep-06 8:50 
QuestionAdding a childwindow to an application other than my own Pin
beeejay14-Sep-06 7:48
beeejay14-Sep-06 7:48 
AnswerRe: Adding a childwindow to an application other than my own Pin
Hamid_RT15-Sep-06 7:20
Hamid_RT15-Sep-06 7:20 
QuestionATL Control Pin
Demian Panello14-Sep-06 6:21
Demian Panello14-Sep-06 6:21 
QuestionFormat Issue On Console Output From Text File !!! New To C++ Pin
Mark_Murphy14-Sep-06 6:20
Mark_Murphy14-Sep-06 6:20 
AnswerRe: Format Issue On Console Output From Text File !!! New To C++ Pin
Zac Howland14-Sep-06 7:41
Zac Howland14-Sep-06 7:41 
When wring the file, write the name in either of the following ways:

fout << name << endl;

four << name << " ";

For print the file to the screen:

// additional includes
#include <iterator>
#include <algorithm>
#include <vector>
#include <string>

// reading file
vector<string> names;
copy(istream_iterator<string>(myFile), istream_iterator<string>(), back_inserter(names));
copy(names.begin(), names.end(), ostream_iterator<string>(cout, "\n"));


Note that depending on the version of your compiler/STL library, it may or may not have overrides for reading string types in this manner, in which case you would need to switch it to a vector of character buffers of some size.

If you decide to become a software engineer, you are signing up to have a 1/2" piece of silicon tell you exactly how stupid you really are for 8 hours a day, 5 days a week

Zac

GeneralRe: Format Issue On Console Output From Text File !!! New To C++ Pin
Mark_Murphy14-Sep-06 8:24
Mark_Murphy14-Sep-06 8:24 
GeneralRe: Format Issue On Console Output From Text File !!! New To C++ Pin
Zac Howland14-Sep-06 9:05
Zac Howland14-Sep-06 9:05 
AnswerRe: Format Issue On Console Output From Text File !!! New To C++ Pin
Eric Dahlvang14-Sep-06 8:20
Eric Dahlvang14-Sep-06 8:20 
GeneralRe: Format Issue On Console Output From Text File !!! New To C++ Pin
Mark_Murphy14-Sep-06 8:29
Mark_Murphy14-Sep-06 8:29 
GeneralRe: Format Issue On Console Output From Text File !!! New To C++ Pin
Mark_Murphy14-Sep-06 9:09
Mark_Murphy14-Sep-06 9:09 
GeneralRe: Format Issue On Console Output From Text File !!! New To C++ Pin
Eric Dahlvang14-Sep-06 9:20
Eric Dahlvang14-Sep-06 9:20 
GeneralRe: Format Issue On Console Output From Text File !!! New To C++ Pin
Mark_Murphy14-Sep-06 9:36
Mark_Murphy14-Sep-06 9:36 
GeneralRe: Format Issue On Console Output From Text File !!! New To C++ Pin
Zac Howland14-Sep-06 9:39
Zac Howland14-Sep-06 9:39 
GeneralRe: Format Issue On Console Output From Text File !!! New To C++ Pin
Mark_Murphy14-Sep-06 10:05
Mark_Murphy14-Sep-06 10:05 
GeneralRe: Format Issue On Console Output From Text File !!! New To C++ Pin
Eric Dahlvang14-Sep-06 10:29
Eric Dahlvang14-Sep-06 10:29 
GeneralRe: Format Issue On Console Output From Text File !!! New To C++ Pin
Mark_Murphy14-Sep-06 11:45
Mark_Murphy14-Sep-06 11:45 
QuestionMiltiple CDocument & handle massage! Pin
mostafa_pasha14-Sep-06 5:55
mostafa_pasha14-Sep-06 5:55 
AnswerRe: Miltiple CDocument & handle massage! Pin
Jun Du14-Sep-06 7:06
Jun Du14-Sep-06 7:06 
GeneralRe: Miltiple CDocument & handle massage! Pin
mostafa_pasha14-Sep-06 8:58
mostafa_pasha14-Sep-06 8:58 
AnswerRe: Miltiple CDocument & handle massage! Pin
Sam Hobbs14-Sep-06 7:52
Sam Hobbs14-Sep-06 7:52 
AnswerRe: Miltiple CDocument & handle massage! Pin
PJ Arends14-Sep-06 8:39
professionalPJ Arends14-Sep-06 8:39 
GeneralRe: Miltiple CDocument & handle massage! Pin
mostafa_pasha14-Sep-06 12:38
mostafa_pasha14-Sep-06 12:38 

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.