admin管理员组

文章数量:1530885

2024年6月30日发(作者:)

#include

#include

#include

#include

using namespace std;

class dazi

{

public:

void setxy(int x,int y);

void welcome(float s);

int body(int s);

void start();

void about();

void select();

void end();

int time();

void help();

};

void dazi::welcome(float s)

{

for(int i=0;i<3;i++)

{

system("cls");

cout<<"nnnnnnnnnnttt正y在¨²进?入¨?请?稍¦?后¨®";

for(int j=0;j<10;j++)

{

Sleep(s);

cout<<".";

}

}

do

{

system("cls");

cout<<"n"<

cout<<"nttt*********************************"<

cout<<"nttt* 欢?迎®-挑¬?战? *"<

cout<<"nttt*********************************"<

//cout<<"nttt* *"<

cout<<"nttt* *"<

cout<<"nttt* 1.进?入¨?游®?戏¡¤ *"<

cout<<"nttt* 2.游®?戏¡¤指?南? *"<

cout<<"nttt* 3.关?于®¨²作Á¡Â者? *"<

cout<<"nttt* 4.退ª?出? *"<

cout<<"nttt* *"<

cout<<"nttt*********************************"<

cout<<"nttt请?选?择?:";

int i;

cin>>i;

switch(i)

{

case 1:

select();

break;

case 2:

help();

break;

case 3:

about();

break;

case 4:

//Sleep(300);

end();

exit(0);

break;

default:

cout<<"您¨²的Ì?输º?入¨?有®D误¨®!按ã¡ä任¨?意°a键¨¹继¨¬

续?......";

getchar();

//getchar();

}

本文标签: 经典打字小游戏