Click here to Skip to main content
15,914,111 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Error while executing program Pin
Wes Aday14-Sep-06 11:18
professionalWes Aday14-Sep-06 11:18 
GeneralRe: Error while executing program Pin
SzyKam14-Sep-06 12:01
SzyKam14-Sep-06 12:01 
GeneralRe: Error while executing program Pin
Wes Aday14-Sep-06 12:12
professionalWes Aday14-Sep-06 12:12 
GeneralRe: Error while executing program Pin
SzyKam14-Sep-06 12:17
SzyKam14-Sep-06 12:17 
GeneralRe: Error while executing program Pin
Wes Aday14-Sep-06 12:20
professionalWes Aday14-Sep-06 12:20 
GeneralRe: Error while executing program Pin
SzyKam14-Sep-06 12:38
SzyKam14-Sep-06 12:38 
GeneralRe: Error while executing program Pin
Wes Aday14-Sep-06 16:31
professionalWes Aday14-Sep-06 16:31 
AnswerRe: Error while executing program Pin
Christian Graus14-Sep-06 13:51
protectorChristian Graus14-Sep-06 13:51 
GeneralRe: Error while executing program Pin
SzyKam14-Sep-06 23:08
SzyKam14-Sep-06 23:08 
QuestionWaiting on a handle that's closed before signaling Pin
Federico Milano14-Sep-06 8:33
Federico Milano14-Sep-06 8:33 
AnswerRe: Waiting on a handle that's closed before signaling Pin
Joe Woodbury14-Sep-06 9:05
professionalJoe Woodbury14-Sep-06 9:05 
AnswerRe: Waiting on a handle that's closed before signaling Pin
Steve S14-Sep-06 22:59
Steve S14-Sep-06 22:59 
QuestionA strange debug error Pin
Waldermort14-Sep-06 8:21
Waldermort14-Sep-06 8:21 
AnswerRe: A strange debug error Pin
PJ Arends14-Sep-06 8:31
professionalPJ Arends14-Sep-06 8:31 
GeneralRe: A strange debug error Pin
Waldermort14-Sep-06 8:35
Waldermort14-Sep-06 8:35 
GeneralRe: A strange debug error Pin
Waldermort14-Sep-06 8:50
Waldermort14-Sep-06 8:50 
GeneralRe: A strange debug error Pin
PJ Arends14-Sep-06 9:03
professionalPJ Arends14-Sep-06 9:03 
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

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.