/in/foo.cc: In constructor 'IntLinkList::IntLinkList(char*)':
/in/foo.cc:64:21: error: variable 'std::ifstream fin' has initializer but incomplete type
ifstream fin(fname);
^
/in/foo.cc: In copy constructor 'IntLinkList::IntLinkList(IntLinkList&)':
/in/foo.cc:77:17: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
}while(i = i->next);
^~~~
/in/foo.cc: In member function 'void IntLinkList::Append(int)':
/in/foo.cc:107:3: error: 'i' was not declared in this scope
i->next = ntail;
^
/in/foo.cc: In member function 'void IntLinkList::InsertAt(int, int)':
/in/foo.cc:121:18: error: 'i' was not declared in this scope
nnode->next = i;
^
/in/foo.cc:125:7: error: 'i' was not declared in this scope
if (i->next == NULL)//如果要插入尾结点
^
/in/foo.cc:130:17: error: 'i' was not declared in this scope
nnode->next = i->next;//链接插入的结点和k号结点
^
/in/foo.cc: In function 'int main(int, char**)':
/in/foo.cc:150:7: error: 'i' was not declared in this scope
for (i = 0; i < n; i++)
^