|
|
if((line[i].at(1) == '.')
line[i]
is empty? How can the computer access the element at(1)
if it doesn't exist?
|
|
getline (myfile,templine);
you simply store that data without knowing if it is real data or if the file ended leaving you with nothing.
|
|