Perhaps that was badly worded. What I meant was, you want the program to realize when it reaches the end of a line so that it can go onto the next row of the matrix. Essentially, reading in all the...
Type: Posts; User: dwks
Perhaps that was badly worded. What I meant was, you want the program to realize when it reaches the end of a line so that it can go onto the next row of the matrix. Essentially, reading in all the...
It's really quite straightforward. C++ considers all whitespace (spaces, newlines) to be separating characters, so if you say
int x;
while(file >> x) {
std::cout << "I got " << x <<...