
|
作者: programlive [coolcall]
论坛用户 |
登录 |
这是程序:#include "stdafx.h" #include <iostream.h> int main() { int i; cout<<"\n yes"; cin>>i; } Compiling... dos1.cpp Linking... LIBCD.lib(wincrt0.obj) : error LNK2001: unresolved external symbol _WinMain@16 Debug/dos1.exe : fatal error LNK1120: 1 unresolved externals Error executing link.exe. dos1.exe - 2 error(s), 0 warning(s) 为什么WIN2000下的VC用MIAN()这个函数就会有这样的?要是用winmain()的话编译通过,可不显示。。是不是VC有问题? [此贴被 programlive(coolcall) 在 05月08日11时13分 编辑过] |
| 地主 发表时间: 04-05-08 11:05 |
回复: programlive [coolcall] 论坛用户 |
登录 |
|
大半天了,没人知道?还是这问题太蠢了?。。。。。我~~~~~顶!! |
| B1层 发表时间: 04-05-08 18:30 |
回复: 286 [unique] 版主 |
登录 |
|
用控制台编译才行。 |
| B2层 发表时间: 04-05-09 09:38 |
回复: programlive [coolcall] 论坛用户 |
登录 |
|
我不知道哪个是 |
| B3层 发表时间: 04-05-09 13:11 |
回复: 286 [unique] 版主 |
登录 |
|
File/New/Projects/Win32 Console Application |
| B4层 发表时间: 04-05-09 17:29 |
回复: programlive [coolcall] 论坛用户 |
登录 |
|
行了,呵呵 |
| B5层 发表时间: 04-05-09 18:07 |
|
20CN网络安全小组版权所有
Copyright © 2000-2010 20CN Security Group. All Rights Reserved.
论坛程序编写:NetDemon

粤ICP备05087286号