Click here to Skip to main content
15,898,222 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
GeneralRe: inputing string & int from file to array. Pin
David Crow31-May-07 6:00
David Crow31-May-07 6:00 
I'm still learning this C++ stream stuff, so I don't think we are on the same page here, Zac. For an input file having a format of:

bob 1 2 3 4 5
mary 2 3 4 5 6 7
nathan 9 8 7 6

The first line of the file is read correctly by the operator>> method. The name is stored in the name variable, and the grades are stored in the grades vector. Those then get copied successfully to the Student object. The problem is that the students vector in main() does not get any Student objects added to it.


"A good athlete is the result of a good and worthy opponent." - David Crow

"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne


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 
GeneralRe: ON_MESSAGE event Pin
edvintas30-Oct-06 7:06
edvintas30-Oct-06 7: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.