C++实现酒桌上”砸桌子"游戏
作者:一个十分弱的c++入门程序员
1、首先我们来实现游戏界面的打印(我们就用最简单的方法)
show.h
#include<iostream>
using namespace std;
#pragma once
void show();
show.cpp
#include"show.h";
//头文件语法: 作用域::作用域指定函数名称
void::show()//用最简单的方法输出
{
cout << "***********************************************************************" << endl;
cout << "***********************************************************************" << endl;
cout << "***** *****" << endl;
cout << "***** 欢迎来到砸桌子游戏 *****" << endl;
cout << "***** *****" << endl;
cout << "********************************************