level 3
#include<stdio.h>
#include<stdlib.h>
main()
{
int x,y;
printf("please enter 2 numbers x and y:\n");
scanf("%d%d",&x,&y);
printf("they are \n%d\n%d\n ",x,y);
printf("total of the numbers are %d\n",x+y);
system("PAUSE");
return 0;
}
不知道你知不知道这是在linux下运行的
2011年09月14日 09点09分
5
level 14
不是,是编译的是时候,例如
#include<iostream>
using namespace std;
int main()
{
cout<<"Hello ,world!"<<endl;
return 0;
}
上面的命令文件名位hello.cpp,那么编译它的命令为gcc -g -o hello.cpp
2011年09月14日 09点09分
9
level 3
还有个事那个VC是哪里编译的找来找去都没有- -
是不是有个dev在vc就不能用了。。。
2011年09月14日 09点09分
13