两个方面:
一是:是不是Clist不能用于console的程序
提示是error LNK2001: unresolved external symbol __endthreadex
error LNK2001: unresolved external symbol __beginthreadex
二是:用于多文档中时,在一个.h文件里定义了CList<int,int> Mylist;.cpp文件里只是包含了文件头,但是编译说:fatal error C1010: unexpected end of file while looking for precompiled header
归结起来一句话:链表类应当怎么使用,是不是简单声明一下,如上所说,就可以使用了,例如Mylist.AddTail(2);等操作。
一是:是不是Clist不能用于console的程序
提示是error LNK2001: unresolved external symbol __endthreadex
error LNK2001: unresolved external symbol __beginthreadex
二是:用于多文档中时,在一个.h文件里定义了CList<int,int> Mylist;.cpp文件里只是包含了文件头,但是编译说:fatal error C1010: unexpected end of file while looking for precompiled header
归结起来一句话:链表类应当怎么使用,是不是简单声明一下,如上所说,就可以使用了,例如Mylist.AddTail(2);等操作。
2。也不是CList的问题。
To use _beginthread or _beginthreadex, the application must link with one of the multithreaded C run-time libraries.2,缺少inlcude "stdafx.h";也可以在文件的属性设置里设置precompiled header.
2、需要包含预编译头文件#include "stdafx.h"
CList本来是可以容纳自定义的结构或类的,但是我现在连基本的类型都不知如何使用.
不知谁能举个例子,贴一个完整的代码出来.