#include <cstdlib>
#include <iomanip>
#include <ctime>
using namespace std;
int fun(int a,int b);
int main(){
int a,b;
cout << setw(40) << " " << "--------欢迎来到猜数字游戏!--------" << endl
<< " 游戏规则:系统随机给出100以内的数字(整数),玩家输入自己猜的数字。" << endl
<< setw(12) << " " << "玩家有8次机会。猜对则游戏胜利,猜错则游戏失败。" << endl
<< setw(12) << " " << "玩家结束一次游戏可选择继续游戏或者退出游戏。" << endl ;
for(int i=1;i<=35;i++)
cout << "-*-" ;
cout << endl ;//此程序来自可爱的重云,未经允许禁止转载,盗程序单人照就是全家福!!!
cout << "输入猜测数字:" ;
fun(a,b);
}
int fun(int a,int b){//此程序来自可爱的重云,未经允许禁止转载,盗程序单人照就是全家福!!!
srand((int)time(0));
a=ran