visual c++ LNK1120 LNK2019 error -
i'm newbie, maybe it's trivial question. code:
#include <iostream> using namespace std; istream& func(istream&); int main() { func(cin); system("pause"); return 0; } istream& fumc(istream& is) { int num; while (is >> num, !is.eof()) { cout << num<<endl; } is.clear(); return is; } i got errors lnk1120 , lnk2019. can me? thank you.
function declaration , definition has mismatch name define istream& func(istream& is) work.
Comments
Post a Comment