I keep getting this error:
error: no match for ‘operator>>’ (operand types are ‘std::ifstream’
{aka ‘std::basic_ifstream<char>’} and ‘std::vector<symbol>’)
26 | myFile >> temp;
| ~~~~~~ ^~ ~~~~
int readAlphabetFromFile(string filename, vector<symbol> alphabet) {
ifstream myFile;
myFile.open(filename);
if (myFile.is_open()) {
while (!myFile.eof()) {
vector<symbol> temp;
myFile >> temp;
alphabet.push_back(temp);
}
return 0;
}
else {
return -1;
}
}