Enter the grid size: 10 0 1 2 3 4 5 6 7 8 9 0 # # # # # # # # # # 1 # # # # # # # # # # 2 # # # # # # # # # # 3 # # # # # # # # # # 4 # # # # # # # # # # 5 # # # # # # # # # # 6 # # # # # # # # # # 7 # # # # # # # # # # 8 # # # # # # # # # # 9 # # # # # # # # # # Enter the x position for tank: 2 Enter the y position for tank: 5 0 1 2 3 4 5 6 7 8 9 0 # # # # # # # # # # 1 # # # # # # # # # # 2 # # # # # + # # # # 3 # # # # # # # # # # 4 # # # # # # # # # # 5 # # # # # # # # # # 6 # # # # # # # # # # 7 # # # # # # # # # # 8 # # # # # # # # # # 9 # # # # # # # # # # Enter the x position for tank: 1 Enter the y position for tank: 5 You hit a bomb! Game over. 0 1 2 3 4 5 6 7 8 9 0 # # # # # # # # # # 1 # # # # # @ # # # # 2 # # # # @ + # # # # 3 # # # # # @ # # # # 4 # # # # # # # # # # 5 # # # # # # # # # # 6 # # # # # # # # # # 7 # # # # # # # # # # 8 # # # # # # # # # # 9 # # # # # # # # # #

#includeiostream#includecstdlibsystem here#include #includectimeusing namespace std;#define SIZE 100#define MAX 100char playArrayMAXMAX;the playing arraychar dispArrayMAXMAX;the displaying arrayvoid s

原文地址: https://www.cveoy.top/t/topic/bZWT 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录