C 语言最初级的问题

来源:百度知道 编辑:UC知道 时间:2024/05/31 07:59:56
1>------ 已启动生成: 项目: 1, 配置: Debug Win32 ------
1>正在链接...
1>MSVCRTD.lib(crtexew.obj) : error LNK2019: 无法解析的外部符号 _WinMain@16,该符号在函数 ___tmainCRTStartup 中被引用
1>C:\Users\liuyunlong\Documents\C TEMP\1\Debug\1.exe : fatal error LNK1120: 1 个无法解析的外部命令
1>生成日志保存在“file://c:\Users\liuyunlong\Documents\C TEMP\1\1\Debug\BuildLog.htm”
1>1 - 2 个错误,0 个警告
========== 生成: 成功 0 个,失败 1 个,最新 0 个,跳过 0 个 ==========
在DEV 里面就正常。。但在VISUAL 2008 里老是出现这个错误。。是什么问题呢。。。请教

代码都还是最简单最简单的。。。试了半天。。不管用什么都错误。。。
#include"stdafx.h"
#include<stdio.h>
#include<stdlib.h>
int main()
{
printf("visual 2008 shit!\n");
}

建console 控制台项目。 这个问题有100个人问过了……

#include"stdafx.h"
#include<stdio.h>
#include<stdlib.h>
int main()
{
printf("visual 2008 shit!\n");
return 0;//因为main()有返回值
}

#include"stdafx.h"
我用编译器试了一下,说no such file or directory,你把这个头文件删了就好了

哈哈。我用户名,在"搜藏记录"那有个很好的免费在线教程网.