当前位置:   article > 正文

c++有趣代码(游戏)_c++游戏代码

c++游戏代码

(会更新哟,点个免费的赞赞支持一下,本文会综合一些其他博主的优质内容给大家放在一块来分享,请大家多多支持,如有侵权请私信我

1.文字小游戏

  1. #include <iostream>
  2. #include <algorithm>
  3. #include <cstdlib>
  4. #include <ctime>
  5. #include <cstring>
  6. #include <string>
  7. #include <cstdio>
  8. #define clear() cout << "\033c" << flush
  9. using namespace std;
  10. const int SIZE = 9;
  11. int Queen[15][15];
  12. // 值为0表示不在攻击范围内,可以放置新皇后;
  13. // 1表示在攻击范围内,不可放置
  14. // 9和-9表示皇后
  15. // 游戏规则展示
  16. void intro()
  17. {
  18. cout << endl <<" 生化危机 "<<endl<<endl<<"\n"<<endl;
  19. cout << "===============
声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/喵喵爱编程/article/detail/1001556
推荐阅读
相关标签
  

闽ICP备14008679号