#include<iostream.h> #include<afx.h> #include<afxcoll.h> #define NUMBER 5 class A:public CObject { int age; public: A(int x):age(x){} void operator!(){cout<<age<<endl;} }; void main() { int x=-1; CObList list; A *p[NUMBER]; cout<<"Please input "<<NUMBER<<" integers"<<endl; for(int i=0;i<NUMBER;i++) { while(x<0)cin>>x; p[i]=new A(x); list.AddHead(p[i]); x=-1; } cout<<"The total number is "<<list.GetCount()<<endl; !*((A*)list.GetHead()); if(list.Find(p[2]))!*p[2]; !*((A*)list.GetAt(list.FindIndex(3))); cout<<flush; cin.get(); list.RemoveAll(); }
Linking... nafxcwd.lib(thrdcore.obj) : error LNK2001: unresolved external symbol __endthreadex nafxcwd.lib(thrdcore.obj) : error LNK2001: unresolved external symbol __beginthreadex Debug/CHAPTER4-17.exe : fatal error LNK1120: 2 unresolved externals Error executing link.exe.
CHAPTER4-17.exe - 3 error(s), 0 warning(s)
高手能帮忙指出到底该怎么解决吗