|
-
March 24th, 2012, 10:33 PM
#13
Re: Having trouble with a readin. Can't read in a matrix into vector of vector of int
What outer while loop?
Also, it's reading in a string. It won't like it if it push a string onto an int vector. What was the function again? atoi()? stoi()?
Do you mean the
while (fin >> temp)
while loop as the outer loop?
Also, won't it be reading in twice then with the fin >> temp and the getline() ?
Last edited by jedipenguin; March 24th, 2012 at 10:35 PM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|