#include <afx.h>
#include <stdio.h>
int main()
{
int lo, hi;
CString str;
CStdioFile fFibo;
fFibo.Open("FIBO.DAT", CFile::modeWrite | CFile::modeCreate | CFile::typeText);
str.Format("%s\n", "Fibonacci sequencee, less than 100 :");
printf("%s", (LPCTSTR) str);
fFibo.WriteString(str);
lo = hi = 1;
str.Format("%d\n", lo);
    printf("%s", (LPCTSTR) str);
    fFibo.WriteString(str);
while (hi < 100)
{
 str.Format("%d\n", hi);
 printf("%s", (LPCTSTR) str);
 fFibo.WriteString(str);
 hi = lo + hi;
 lo = hi - lo;
 } fFibo.Close();
 return 0;
}------------
错误信息:
--------------------Configuration: test14 - Win32 Debug--------------------
Linking...
nafxcwd.lib(thrdcore.obj) : error LNK2001: unresolved external symbol __endthreadex
nafxcwd.lib(thrdcore.obj) : error LNK2001: unresolved external symbol __beginthreadex
Debug/test14.exe : fatal error LNK1120: 2 unresolved externals
Error executing link.exe.test14.exe - 3 error(s), 0 warning(s)