Click here to Skip to main content
15,895,746 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Tabs, toolbars, views, and MFC... Pin
Mark Salsbery30-Oct-06 12:08
Mark Salsbery30-Oct-06 12:08 
GeneralRe: Tabs, toolbars, views, and MFC... Pin
dontknowitall30-Oct-06 16:33
dontknowitall30-Oct-06 16:33 
Questioninputing string & int from file to array. Pin
Ramper30-Oct-06 9:43
Ramper30-Oct-06 9:43 
QuestionRe: inputing string & int from file to array. Pin
David Crow30-Oct-06 9:47
David Crow30-Oct-06 9:47 
AnswerRe: inputing string & int from file to array. Pin
Ramper30-Oct-06 9:52
Ramper30-Oct-06 9:52 
GeneralRe: inputing string & int from file to array. Pin
Zac Howland30-Oct-06 10:45
Zac Howland30-Oct-06 10:45 
QuestionRe: inputing string & int from file to array. Pin
David Crow30-May-07 9:24
David Crow30-May-07 9:24 
AnswerRe: inputing string & int from file to array. Pin
Zac Howland31-May-07 5:43
Zac Howland31-May-07 5:43 
It should be getting 1 student only (due to the previously mentioned bug in that example). Fixing the bug will allow it to copy all the students in the file to the vector. The easiest way to do this without having to modify the data file format is to modify the input stream extractor to get the id and then calling getline to store the rest of the line as a string. Then create a stringstream object and extract the grades (everything in the streamstream) into the grades vector using a copy operation. Basically, you add 2 lines of code and change the iterators for the grades-copy call.

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: inputing string & int from file to array. Pin
David Crow31-May-07 6:00
David Crow31-May-07 6:00 
GeneralRe: inputing string & int from file to array. Pin
Zac Howland31-May-07 7:44
Zac Howland31-May-07 7:44 
QuestionRe: inputing string & int from file to array. Pin
David Crow31-May-07 8:42
David Crow31-May-07 8:42 
AnswerRe: inputing string & int from file to array. Pin
Zac Howland31-May-07 9:07
Zac Howland31-May-07 9:07 
GeneralRe: inputing string & int from file to array. Pin
David Crow1-Jun-07 4:13
David Crow1-Jun-07 4:13 
QuestionCPrintDialog issue Pin
Andy H30-Oct-06 8:59
Andy H30-Oct-06 8:59 
QuestionVS 2003 .NET System Path Pin
BlitzPackage30-Oct-06 8:20
BlitzPackage30-Oct-06 8:20 
AnswerRe: VS 2003 .NET System Path Pin
Mark Salsbery30-Oct-06 9:01
Mark Salsbery30-Oct-06 9:01 
GeneralRe: VS 2003 .NET System Path Pin
BlitzPackage30-Oct-06 9:11
BlitzPackage30-Oct-06 9:11 
GeneralRe: VS 2003 .NET System Path Pin
Mark Salsbery30-Oct-06 9:37
Mark Salsbery30-Oct-06 9:37 
GeneralRe: VS 2003 .NET System Path Pin
BlitzPackage30-Oct-06 10:16
BlitzPackage30-Oct-06 10:16 
QuestionON_MESSAGE event Pin
edvintas30-Oct-06 6:33
edvintas30-Oct-06 6:33 
AnswerRe: ON_MESSAGE event Pin
Mark Salsbery30-Oct-06 6:37
Mark Salsbery30-Oct-06 6:37 
GeneralRe: ON_MESSAGE event Pin
edvintas30-Oct-06 6:41
edvintas30-Oct-06 6:41 
GeneralRe: ON_MESSAGE event Pin
Mark Salsbery30-Oct-06 6:47
Mark Salsbery30-Oct-06 6:47 
GeneralRe: ON_MESSAGE event Pin
edvintas30-Oct-06 7:02
edvintas30-Oct-06 7:02 
AnswerRe: ON_MESSAGE event Pin
Maximilien30-Oct-06 6:56
Maximilien30-Oct-06 6:56 

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.