啊哈磊_编程从这里起步

标题: 为什么错了呢? [打印本页]

作者: rainymo    时间: 2019-8-31 22:43
标题: 为什么错了呢?
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3. int main()
  4. {
  5.     int a,b;
  6.     a=0;
  7.     while(a<=2)
  8.     {
  9.         system("cls");
  10.         b=1;
  11.         while(b<=a)
  12.         {
  13.             printf(" ");
  14.             b=b+1;
  15.         }
  16.         
  17.         printf("H");
  18.         sleep(1000);
  19.         a=a+1;
  20.     }
  21.     system("pause");
  22.     return 0;
  23. }
复制代码





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