啊哈磊_编程从这里起步

标题: 求助 [打印本页]

作者: 常世承    时间: 2020-1-12 08:52
标题: 求助
[code]#include <stdio.h>
#include <stdlib.h>
int main()
{
    while(1>0)
    {
        printf("0 1");
    }
    system("pause")
    return 0;
上文的return 0;那错了
作者: Return.    时间: 2020-1-12 10:53
大括号不匹配
return0下面加个}
作者: Return.    时间: 2020-1-12 10:54
以及system后面没有加;
代码:
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3. int main()
  4. {
  5.     while(1>0)
  6.     {
  7.         printf("0 1");
  8.     }
  9.     system("pause");
  10.     return 0;
  11. }
复制代码





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