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

Popular posts from this blog

Sort a complex associative array in PHP -

vb.net - How to ignore if a cell is empty nothing -

recursion - Can every recursive algorithm be improved with dynamic programming? -