0
已解决
王泽轩
资深天翼
资深天翼
#include<iostream>
#include<conio.h>
using namespace std;
bool f=0;
void jntm(){
cout<<"按键说明:\n";
cout<<"空格->换行 \"~\"->\"~\" n->你 g->干 m->吗(自动判定m) h->哈\n";
cout<<"a->唉 y->呦 j->** t->太 m->美(自动判定m)\n\n";
cout<<"输入按键打字\n\n";
cout<<"[按任意键继续]";
char a=getch();
system("cls");
}
int main(){
cout<<"[q]玩法教学\n\n";
while(1){
char c=getch();
if(c=='q')jntm();
else if(c==' ')cout<<endl;
else if(c=='~')cout<<"~";
else if(c=='h')cout<<"哈";
else if(c=='a')cout<<"唉";
else if(c=='y')cout<<"呦";
else if(c=='g'){
cout<<"干";
f=1;
}
else if(c=='m'&&f==1){
cout<<"嘛";
f=0;
}
else if(c=='j')cout<<"**";
else if(c=='n')cout<<"你";
else if(c=='t')cout<<"太";
else if(c=='m')cout<<"美";
}return 0;
}
0
0
0
0
0
0