|
|
|
|
error: declaration of 'std::ifstream p_in' shadows a parameter |
|
|
synthesized method 'std::basic_ifstream<char, std::char_traits<char> >& std::basic_ifstream<char, std::char_traits<char> >::operator=(const std::basic_ifstream<char, std::char_traits<char> >&)' first required here |
|
|
error: variable or field 'fileOpen' declared void ../Lab1/main.cpp:4: error: 'ifstream' was not declared in this scope ../Lab1/main.cpp:4: error: 'in' was not declared in this scope ../Lab1/main.cpp:5: error: variable or field 'parseLine' declared void ../Lab1/main.cpp:5: error: 'string' was not declared in this scope ../Lab1/main.cpp: In function 'int main()': ../Lab1/main.cpp:14: error: 'fileOpen' was not declared in this scope ../Lab1/main.cpp:19: error: 'parseLine' was not declared in this scope ../Lab1/main.cpp:23: error: 'rc' was not declared in this scope ../Lab1/main.cpp:25: error: return-statement with no value, in function returning 'int' make: *** [main.o] Error 1 |
|
|
return
keyword, specify what you are returning.return
keyword.string
you must #include<string>
std::ifstream
.using namespace std;
) but that only applies to code further down in the cpp file.
|
|