|
|
#include <string> because you use std::string and std::getline.string STRING; usually all uppercase letters means that its a constant you should use lowercase and a descriptive name. |
|
while(!infile.eof()) looping on eof is almost always wrong it should be more like while (getline(infile, STRING))for(int y=atsign;atsign<=STRING.size();y++) should look more like this for (int y = atsign; y < STRING.size(); y++)