sh:pause:not found?
usrbin吧
全部回复
仅看楼主
level 3
改成PAUSE也一样
2011年09月14日 08点09分 1
level 14
system("pause");[歪头]
2011年09月14日 09点09分 2
level 3
是啊,是运行结束后才提示的
2011年09月14日 09点09分 3
level 14
[汗]
个代码来看看
2011年09月14日 09点09分 4
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
[瀑布汗~]Linux下的代码和windows下的代码不一样
2011年09月14日 09点09分 6
level 14
2011年09月14日 09点09分 7
level 3
[瀑布汗~][瀑布汗~][瀑布汗~][瀑布汗~][瀑布汗~]C++也是吗[瀑布汗~][瀑布汗~][瀑布汗~][瀑布汗~][瀑布汗~]那我是不是要重学
2011年09月14日 09点09分 8
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
编译时候又怎样[揉脸]
C++的不是应该g++ -o xxx filename么[揉脸]
-g是什么用的[揉脸]

2011年09月14日 09点09分 10
level 14
[汗]gcc是gcc编译器
2011年09月14日 09点09分 11
level 14
具体你看上面那个链接吧[汗]
2011年09月14日 09点09分 12
level 3
还有个事那个VC是哪里编译的找来找去都没有- -
是不是有个dev在vc就不能用了。。。
2011年09月14日 09点09分 13
level 14
F7
2011年09月14日 09点09分 14
level 3
没有生成可执行文件[揉脸]
2011年09月14日 09点09分 15
level 14
[揉脸]F9试试
2011年09月14日 09点09分 16
level 3
F9应该是没功能的[不高兴]
2011年09月14日 09点09分 17
level 14
Ctrl+F9试试[囧]
2011年09月14日 09点09分 18
level 3
一样。。。
2011年09月14日 09点09分 19
level 14
http://wenku.baidu.com/view/524c42cea1c7aa00b52acb31.html
[揉脸]我基本不用VC,你看这个吧
2011年09月14日 09点09分 20
1 2 尾页