啊哈磊_编程从这里起步

标题: 失败了,怎么办 [打印本页]

作者: 13350009329    时间: 2019-7-14 23:43
标题: 失败了,怎么办
  1. #include <iostream>
  2. #include <cstdio>
  3. using namespace std;
  4. int main()
  5. {
  6.     system("color 0a");
  7.     while(1>0)
  8.     {
  9.         printf("0 1");
  10.     }
  11.     system("pause");
  12.     return 0;
  13. }
复制代码

作者: 冰山qd    时间: 2019-7-15 18:55
    system("color 0a"); 不同的编程环境需要不同的语句,这个函数在c环境没问题,c++环境应该加头文件





欢迎光临 啊哈磊_编程从这里起步 (https://bbs.codeaha.com/) Powered by Discuz! X3.2