Topic: VC++的问题.我是菜鸟!!!!!!!!!!!!!!!

  Print this page

1.VC++的问题.我是菜鸟!!!!!!!!!!!!!!! Copy to clipboard
Posted by: 5710263
Posted on: 2006-07-26 14:32

#include<stdio.h>

void main()
{
  printf("han dsajd\n");
}
可以告诉我哪地方出错了吗?
环境告诉我1处错误!

2.Re:VC++的问题.我是菜鸟!!!!!!!!!!!!!!! [Re: 5710263] Copy to clipboard
Posted by: zcjl
Posted on: 2006-07-26 17:02

i can not find any error here
and it runs okay when i test it with VC++

3.Re:VC++的问题.我是菜鸟!!!!!!!!!!!!!!! [Re: 5710263] Copy to clipboard
Posted by: jsmile
Posted on: 2006-07-26 22:00

int main() ?

4.Re:VC++的问题.我是菜鸟!!!!!!!!!!!!!!! [Re: 5710263] Copy to clipboard
Posted by: ranchgirl
Posted on: 2006-07-29 21:14

You probably need a C++ forum:

http://www.programfan.com/club/bbs.asp?bbsid=5

Very good.

5.Re:VC++的问题.我是菜鸟!!!!!!!!!!!!!!! [Re: 5710263] Copy to clipboard
Posted by: colo007
Posted on: 2006-07-29 23:42

为什么不把提示的错误也写出来呢?
如果用的是VC++的话,试着这样:
#include<stdio.h>
using namespace std;
void main()
{
printf("han dsajd\n");
}

6.Re:VC++的问题.我是菜鸟!!!!!!!!!!!!!!! [Re: 5710263] Copy to clipboard
Posted by: wdx04
Posted on: 2006-07-30 12:55

jsmile正解,楼上错了。
用std名字空间的写法是:
#include<cstdio>
using namespace std;
int main()
{
printf("han dsajd\n");
}


   Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent
Copyright © 2002-2021 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号-1
客服电话 18559299278    客服信箱 714923@qq.com    客服QQ 714923