第2个回答 2009-12-03
#include <cstdlib>
#include <iostream>
using namespace std;
int main(int argc, char *argv[])
{
char bell;
bell=7;
putchar(bell);
system("PAUSE");
return EXIT_SUCCESS;
}
运行时电脑会叫一声(bell),然后是黑色的界面
你的程序只是用来让电脑发出声音的,没有任何可借输出的字符
system("PAUSE");
return EXIT_SUCCESS;
这两行代码可以不让你的界面一闪即逝