Not sure why this is happening, it seems like everything is lined up the way it should be unless there is something I am missing. I can't pass these variables and no matter what I try to throw at the compiler, it just gives me another error.
This is my code so far.
void parse(string name, string storage_1, string storage_2, string storage_3) {//some code } //some more code int start = 0; int length = 0; string param_1, param_2, param_3; while (!infile.eof()) { if (!infile) { cout << "ERROR: File " << file << " could not be located!" << endl << endl; break; } param_1.clear(); param_2.clear(); param_3.clear(); line_input.clear(); getline(infile, line_input); parse(line_input, ¶m_1, ¶m_2, ¶m_3); cout << param_1 << endl << param_2 << endl << param_3 << endl << endl; }
¶m_xinstead of simplyparam_x?getlinebefore using the string, not just checking foreofevery so often.