编程输入的时候只能用英文字符,不能用输入法。
system("pause");
大概是这样。
完整的话
#include <stdio.h>
#include <stdlib.h>
int main()
{
printf("ni hao");
system("pause");
return 0;
}
复制上面运行看看,从#include <stdio.h>到}。
system("pause");
起到的是暂停的作用
可以用
while(1);
或
Sleep(5000);
Sleep函数用起来要注意
开头s要大写
代码程序最上面还要加上
#include <windows.h>
的头文件。
开始弄这个我也是很懵。
试试看能不能解决这个问题。 |