请问构建程序时出现的错误提示是何意
请问构建程序时出现的错误提示是何意,该如何解决?
LIBCD.lib(wincrt0.obj) : error LNK2001: unresolved external symbol _WinMain@16
Debug/a.exe : fatal error LNK1120: 1 unresolved externals
本人刚学VC++没几天,问题浅陋,请勿见笑。源程序如下:
#include<stdafx.h>
#include<fstream.h>
#include<stdlib.h>
#include<iostream.h>
void abcd()
{
char ch;
fstream infile,outfile;
infile.open("D:\\My Documents\\MyProjects\\RWFAT.txt",ios::in);
if(!infile)
{
cout<<"rwfat.txt文件不能打开"<<endl;
abort();
}
outfile.open("rwfat1.txt",ios::out);
if(!outfile)
{
cout<<"rwfat1.txt文件不能打开"<<endl;
abort();
}
while (infile.get(ch))
{
cout<<ch;
outfile.put(ch);
}
cout<<endl;
infile.close();
outfile.close();
}