|登录 |注册

查看: 1513|回复: 8
打印 上一主题 下一主题

hello world~帮帮忙。。。

[复制链接]
anglebaby
2011-5-18 07:02 PM
我是用microsoft visual c++来写hello world~
写好后我按compile,显示0 error, 0 warning

之后我按execute 他就出现
--------------------Configuration: helloworld - Win32 Debug--------------------
Linking...
LINK : fatal error LNK1104: cannot open file "Debug/helloworld.exe"
Error executing link.exe.

helloworld.exe - 1 error(s), 0 warning(s)
是什么问题呢??
anglebaby
2011-5-18 07:03 PM
这是我写的。。。。

#include <stdio.h>
int main(void)
{
        printf("hello world!\n");
        return 0;
}
宅男-兜着走
2011-5-18 11:11 PM
cannot open file "Debug/helloworld.exe"

很明显的是, IDE 找不到 可执行文件。 手动去开吧。
win7qi
2011-5-19 04:28 PM
hahaa..... 忘记怎样写了
anglebaby
2011-5-19 08:01 PM
手动哪里找??
Qio_Bu_Zai
2011-5-19 10:18 PM
用 dev c++ 來寫吧 比較好用  用google 搜尋一下 就有的下載了

#include <stdio.h>
#include<iostream>
using namespace std;
int main()
{
        printf("hello world!\n");
         system("pause");  //讓程式執行pause 給你看結果
        return 0;
      
}
anglebaby
2011-5-20 07:05 PM
谢谢呀~
如果我一定要用microsoft visual c++来写呢?
Qio_Bu_Zai
2011-5-21 12:48 PM
也是可以啊 應該沒差別的
goodhermit95
2011-5-30 11:24 PM
你自己开住hello world是吗!他update不到
debug里面的exe
您需要登录后才可以回帖 登录 | 注册

JBTALKS.CC |联系我们 |隐私政策 |Share

GMT+8, 2026-1-1 07:44 AM , Processed in 0.099173 second(s), 26 queries .

Powered by Discuz! X2.5 © 2001-2012 Comsenz Inc.

本论坛言论纯属发表者个人意见,与本论坛立场无关
Copyright © 2003-2012 JBTALKS.CC All Rights Reserved

Dedicated Server powered by iCore Technology Sdn. Bhd.

合作联盟网站:
JBTALKS 马来西亚中文论坛 | JBTALKS我的空间 | ICORE TECHNOLOGY SDN. BHD.
回顶部