当前位置:   article > 正文

祖国妈妈,生日快乐_[voidy] mom's redhair [chinese]

[voidy] mom's redhair [chinese]
  1. #include <stdio.h>
  2. #include <math.h>
  3. #include <windows.h>
  4. #define I 20
  5. #define R 340
  6. #include <bits/stdc++.h>
  7. int main()
  8. {
  9. //首先使用for循环打印出心形
  10. float y, x, z, f;
  11. srand(time(0));
  12. //循环变色
  13. long time;
  14. int e=rand()%252+1;
  15. SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), 192);
  16. printf("祖国妈妈,生日快乐!!!");
  17. e=rand()%252+1;
  18. for (y = 1.5f; y > -1.5f; y -= 0.1f)
  19. {
  20. for (x = -1.5f; x < 1.5f; x += 0.05f)
  21. {
  22. z = x * x + y * y - 1;
  23. f = z * z * z - x * x * y * y * y;
  24. SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), e);
  25. putchar(f <= 0.0f ? "*********"[(int)(f * -8.0f)] : ' ');
  26. }
  27. printf("\n");
  28. }
  29. Sleep(3000);
  30. for (;;)
  31. {
  32. system("color a");
  33. for (time = 0; time < 99999999; time++);
  34. system("color b");
  35. for (time = 0; time < 99999999; time++);
  36. system("color c");
  37. for (time = 0; time < 99999999; time++);
  38. system("color d");
  39. for (time = 0; time < 99999999; time++);
  40. system("color e");
  41. for (time = 0; time < 99999999; time++);
  42. system("color f");
  43. for (time = 0; time < 99999999; time++);
  44. system("color 0");
  45. for (time = 0; time < 99999999; time++);
  46. system("color 1");
  47. for (time = 0; time < 99999999; time++);
  48. system("color 2");
  49. for (time = 0; time < 99999999; time++);
  50. system("color 3");
  51. for (time = 0; time < 99999999; time++);
  52. system("color 4");
  53. for (time = 0; time < 99999999; time++);
  54. system("color 5");
  55. for (time = 0; time < 99999999; time++);
  56. system("color 6");
  57. for (time = 0; time < 99999999; time++);
  58. system("color 7");
  59. for (time = 0; time < 99999999; time++);
  60. system("color 8");
  61. for (time = 0; time < 99999999; time++);
  62. system("color 9");
  63. }
  64. getchar();
  65. return 0;
  66. }

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/weixin_40725706/article/detail/804477
推荐阅读
  

闽ICP备14008679号