Click here to Skip to main content
15,886,799 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
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 
Putting the grades in a stringstream prevents the istream from trying to read the rest of the file. When the istream gets to the end of the file (that is, when the >> returns an eof()) it doesn't add anything to the vector (which is what you were seeing).

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 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 
AnswerRe: ON_MESSAGE event Pin
S Douglas30-Oct-06 21:28
professionalS Douglas30-Oct-06 21:28 
QuestionCFtpFileFind problems Pin
Dman832230-Oct-06 6:28
Dman832230-Oct-06 6:28 
QuestionMultiple selection dragging on CListCtrl Pin
skullfire30-Oct-06 6:14
skullfire30-Oct-06 6:14 

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.