stdlib.h
★★★★★欢迎光临我的博客 ★★★★★
http://www.
#include "stdio.h"
#include "afx.h"
#include "iostream.h"
#include "stdlib.h"
void main()
{
CString s="3.5";
double d1 = atof(s);
double d2 = 4.11;
CString temp;
temp.Format("%f", d2);
printf("%f\n",d1);
printf("%s",temp);
}
在VC6,编译构建后出现下面的错误:
----------Configuration: cstringlianxi - Win32 Debug--------------------
Linking...
nafxcwd.lib(thrdcore.obj) : error LNK2001: unresolved external symbol __endthreadex
nafxcwd.lib(thrdcore.obj) : error LNK2001: unresolved external symbol __beginthreadex
Debug/cstringlianxi.exe : fatal error LNK1120: 2 unresolved externals
执行 link.exe 时出错.
cstringlianxi.exe - 1 error(s), 0 warning(s)
不知道为何