|
|
|
|
|
|
| getline() reads until either a line-break or the end of the file is reached. |
| Why are you using cstdio input instead of iostreams which are preferred in C++. |
*printf() and *scanf() fanboy 😅
fscanf() function, as in my sample code above.>>(int& val) operator of the std::ifstream class.>>(int& val) "extracts" a number from the stream (it also skips any leading spaces), but then you still have to read/skip the ',' character that follows before you can "extract" the next number. |
|
|
|
|
|