C++#include <bits/stdc++.h>
#include <conio.h>
#include <stdio.h>
#include <time.h>
#include <windows.h>
#define KEY_DOWN(VK_NONAME) ((GetAsyncKeyState(VK_NONAME) & 0x8000) ? 1 : 0)
using namespace std;
int to(float a) {
if (a > 0)
return int(a + 0.5);
else if (a < 0)
return int(-a - 0.5);
if (a == 0) return 0;
}
int id;
void Setpos(float x, float y) {
int xx = to(x), yy = to(y * 2);
COORD pos;
pos.X = yy, pos.Y = xx;
SetConsoleCursorPosition(GetStdHandle(STD_OUTPUT_HANDLE), pos);
}
int T9_Color[10] = {0, -40, -30, -31, -50, -20, -21, -60, -10, -11}; // 2.0 配色方案
int U3_Color[10] = {0, -1, -70, -71}; // 从上到下
int L8_Color[10] = {0, -60, -40, -20, -10, -50, -11, -21, -30};
int B26_Color[30], L26_Color[30], FJ_Color[30]; // Board区键盘上色
void Slow(char* p) {
while (1) {
if (*p != 0)
printf("%c", *p++);
else
break;
if (!kbhit()) Sleep(50);
}
}
void Slow_F(char* p) {
while (1) {
if (*p != 0)
printf("%c", *p++);
else
break;
if (!kbhit()) Sleep(10);
}
}
void Color(int a) {
#define SCT SetConsoleTextAttribute
#define GSH GetStdHandle(STD_OUTPUT_HANDLE)
#define WHITE FOREGROUND_INTENSITY | FOREGROUND_RED | FOREGROUND_GREEN | FOREGROUND_BLUE
if (a == 0) SCT(GSH, FOREGROUND_INTENSITY | FOREGROUND_RED | FOREGROUND_GREEN | FOREGROUND_BLUE);
if (a == 10) SCT(GSH, FOREGROUND_INTENSITY | FOREGROUND_GREEN | FOREGROUND_BLUE);
if (a == 20) SCT(GSH, FOREGROUND_INTENSITY | FOREGROUND_GREEN);
if (a == 30) SCT(GSH, FOREGROUND_INTENSITY | FOREGROUND_RED | FOREGROUND_BLUE);
if (a == 40) SCT(GSH, FOREGROUND_INTENSITY | FOREGROUND_RED);
if (a == 50) SCT(GSH, FOREGROUND_INTENSITY | FOREGROUND_RED | FOREGROUND_GREEN);
if (a == 60) SCT(GSH, FOREGROUND_INTENSITY | FOREGROUND_BLUE);
if (a == 70) SCT(GSH, FOREGROUND_RED | FOREGROUND_GREEN | FOREGROUND_BLUE);
if (a == 71) SCT(GSH, FOREGROUND_INTENSITY);
if (a == 11) SCT(GSH, FOREGROUND_GREEN | FOREGROUND_BLUE);
if (a == 21) SCT(GSH, FOREGROUND_GREEN);
if (a == 31) SCT(GSH, FOREGROUND_RED | FOREGROUND_BLUE);
if (a == 41) SCT(GSH, FOREGROUND_RED);
if (a == 51) SCT(GSH, FOREGROUND_RED | FOREGROUND_GREEN);
if (a == 61) SCT(GSH, FOREGROUND_BLUE);
if (a == -1) SCT(GSH, BACKGROUND_INTENSITY | BACKGROUND_RED | BACKGROUND_GREEN | BACKGROUND_BLUE);
if (a == 1) SCT(GSH, 0);
if (a == -10) SCT(GSH, BACKGROUND_INTENSITY | BACKGROUND_GREEN | BACKGROUND_BLUE);
if (a == -20) SCT(GSH, BACKGROUND_INTENSITY | BACKGROUND_GREEN);
if (a == -30) SCT(GSH, BACKGROUND_INTENSITY | BACKGROUND_RED | BACKGROUND_BLUE);
if (a == -40) SCT(GSH, BACKGROUND_INTENSITY | BACKGROUND_RED | WHITE);
if (a == -50) SCT(GSH, BACKGROUND_INTENSITY | BACKGROUND_RED | BACKGROUND_GREEN);
if (a == -60) SCT(GSH, BACKGROUND_INTENSITY | BACKGROUND_BLUE | WHITE);
if (a == -70) SCT(GSH, BACKGROUND_RED | BACKGROUND_GREEN | BACKGROUND_BLUE);
if (a == -71) SCT(GSH, BACKGROUND_INTENSITY | WHITE);
if (a == -11) SCT(GSH, BACKGROUND_GREEN | BACKGROUND_BLUE | WHITE);
if (a == -21) SCT(GSH, BACKGROUND_GREEN | WHITE);
if (a == -31) SCT(GSH, BACKGROUND_RED | BACKGROUND_BLUE | WHITE);
if (a == -41) SCT(GSH, BACKGROUND_RED | WHITE);
if (a == -51) SCT(GSH, BACKGROUND_RED | BACKGROUND_GREEN | WHITE);
if (a == -61) SCT(GSH, BACKGROUND_BLUE | WHITE);
}
struct TYPPER {
char name;
int left, up; // 从左向右,从上到下
float x, y; // y是横列
} T[50], Ta[50]; // Ta:all,T:字母
int N[50]; // 反字母对应
void Initialization_TYPPER() {
char T1[50] = "*QWERTYUIOP[]"; // 字母1len=10+2
char T2[50] = "*ASDFGHJKL;'"; // 字母2len=9+2
char T3[50] = "*ZXCVBNM,./"; // 字母3len=7+3
int tl = 0, tal = 0;
for (int j = 1; j <= 3; j++)
for (int i = 1; i <= 12; i++) {
char t0;
if (j == 1) t0 = T1[i];
if (j == 2) t0 = T2[i];
if (j == 3) t0 = T3[i];
if (t0 >= 'A' && t0 <= 'Z') {tl++;T[tl].name = t0;T[tl].left = i;T[tl].up = j;T[tl].x = 4 * j - 1;T[tl].y = 4 * i - 1;if (j == 2) T[tl].y += 1;if (j == 3) T[tl].y += 3;N[t0 - 'A' + 1] = tl;
}
if (t0 != 0) {tal++;Ta[tal].name = t0;Ta[tal].left = i;Ta[tal].up = j;Ta[tal].x = 4 * j - 1;Ta[tal].y = 4 * i - 1;if (j == 2) Ta[tal].y += 1;if (j == 3) Ta[tal].y += 3;
}
}
B26_Color['W' - 'A' + 1] = T9_Color[2];
B26_Color['A' - 'A' + 1] = T9_Color[2];
B26_Color['S' - 'A' + 1] = T9_Color[2];
B26_Color['D' - 'A' + 1] = T9_Color[2];
B26_Color['Q' - 'A' + 1] = T9_Color[1];
B26_Color['E' - 'A' + 1] = T9_Color[4];
B26_Color['R' - 'A' + 1] = T9_Color[4];
B26_Color['T' - 'A' + 1] = T9_Color[4];
B26_Color['Y' - 'A' + 1] = T9_Color[4];
B26_Color['F' - 'A' + 1] = T9_Color[5];
B26_Color['G' - 'A' + 1] = T9_Color[5];
B26_Color['H' - 'A' + 1] = T9_Color[5];
B26_Color['Z' - 'A' + 1] = T9_Color[3];
B26_Color['X' - 'A' + 1] = T9_Color[3];
B26_Color['C' - 'A' + 1] = T9_Color[3];
B26_Color['V' - 'A' + 1] = T9_Color[3];
B26_Color['B' - 'A' + 1] = T9_Color[6];
for (char i = 'I'; i <= 'P'; i++) B26_Color[i - 'A' + 1] = T9_Color[9];
B26_Color['U' - 'A' + 1] = T9_Color[7];
B26_Color['I' - 'A' + 1] = T9_Color[7];
B26_Color['O' - 'A' + 1] = T9_Color[7];
// B26_Color定义
for (int i = 1; i <= 26; i++) {
if (T[i].left <= 5) L26_Color[T[i].name - 'A' + 1] = L8_Color[i];
if (T[i].left <= 5)
L26_Color[T[i].name - 'A' + 1] = L8_Color[T[i].left];
else if (T[i].up == 1 && T[i].left >= 6)
L26_Color[T[i].name - 'A' + 1] = L8_Color[max(5, T[i].left - 2)];
else if (T[i].up == 2 && T[i].left >= 6)
L26_Color[T[i].name - 'A' + 1] = L8_Color[T[i].left - 1];
else if (T[i].up == 3 && T[i].left >= 6)
L26_Color[T[i].name - 'A' + 1] = L8_Color[T[i].left];
}
// L26_Color定义
}
struct TYPE_WORD {
char C_name[1000], E_name[1000]; // e:拼音
int C_last, E_last; //-----------E_name,从零开始!
int to_be_write; //-----------从零开始!
int writing; // 是否正在输入
int error; // 是否已经输错
} W[1000];
int Word_num;
int Start_x = 5, Start_y = 5, Start_Gap = 3;
void Creat_Word(string c, string e, int i) {
for (int j = 0; j < 500; j++) {
W[i].C_name[j] = c[j];
if (c[j] == 0 && W[i].C_last == 0) {
W[i].C_last = j - 1;
}
if (e[j] == 0 && W[i].E_last == 0) {
W[i].E_last = j - 1;
} else
W[i].E_name[j] = e[j];
}
W[i].to_be_write = W[i].writing = W[i].error = 0;
}
void Print_Single_Word(int i) {
int where = i, x, y;
y = Start_y;
x = Start_x + (where - 1) * Start_Gap;
if (W[i].error == 0)
Color(-20);
else
Color(-70);
Setpos(x - 1, y);
int Long_Word = 0;
if (W[i].E_last >= 20) Long_Word = 1;
int S = 0, E = W[i].E_last;
if (Long_Word == 1) S = max(S, W[i].to_be_write - 5), E = min(S + 20, W[i].E_last);
for (int j = S; j <= E; j++) {
if (j >= W[i].to_be_write || W[i].writing == 0) Color(0);
if (W[i].writing == 1)
printf("%c", W[i].E_name[j]);
else
printf(" ");
}
Color(0);
printf(" ");
Setpos(x, y);
cout << W[i].C_name;
}
void Print_Empty_Word(int i) {
int where = i, x, y;
y = Start_y;
x = Start_x + (where - 1) * Start_Gap;
Color(0);
Setpos(x - 1, y);
cout << " ";
Setpos(x, y);
for (int j = 0; j <= W[i].C_last; j++) cout << " ";
}
void Delete_Single_Word(int i) {
memset(W[i].C_name, 0, sizeof(W[i].C_name));
memset(W[i].E_name, 0, sizeof(W[i].E_name));
W[i].E_last = W[i].C_last = W[i].to_be_write = W[i].writing = W[i].error = 0;
}
void Delete_All_Word() {
for (int i = 1; i <= Word_num; i++) Print_Empty_Word(i), Delete_Single_Word(i);
Word_num = 0;
}
void Print_Gold_Word(int i) {
int where = i, x, y;
y = Start_y;
x = Start_x + (where - 1) * Start_Gap;
Color(-50);
Setpos(x - 1, y);
int Long_Word = 0;
if (W[i].E_last >= 20) Long_Word = 1;
int S = 0, E = W[i].E_last;
if (Long_Word == 1) S = max(S, W[i].to_be_write - 5), E = min(S + 20, W[i].E_last);
for (int j = S; j <= E; j++) {
printf("%c", W[i].E_name[j]);
}
Color(0);
printf(" ");
Setpos(x, y);
cout << W[i].C_name;
Sleep(100);
}
void Print_All_Word() {
for (int i = 1; i <= Word_num; i++) Print_Single_Word(i);
}
void Slow_Print_All_Word() {
for (int i = 1; i <= 2; i++) {
Print_Single_Word(i);
if (Word_num <= 3)
Sleep(700);
else
Sleep(50);
}
}
void Add_Word_Letter(char c[200], char e[200], int i) {
int l = W[i].E_last, lc = W[i].C_last;
bool eend = 0, endc = 0;
for (int j = 0; j < 200; j++) {
lc++;
W[i].C_name[lc] = c[j];
if (c[j] == 0 && endc == 0) {
W[i].C_last = lc - 1;
endc = 1;
}
}
for (int j = 0; j < 200; j++) {
l++;
W[i].E_name[l] = e[j];
if (e[j] == 0 && eend == 0) {
W[i].E_last = l - 1;
eend = 1;
if (W[i].E_last >= 20) Print_Empty_Word(i);
}
}
Print_Single_Word(i);
}
int Choose;
void Word_Skill(int a) { Choose = a; }
void Delete_Read_Board() {
for (int i = 1; i <= Word_num; i++) {
W[i].to_be_write = W[i].writing = W[i].error = 0;
}
}
void Delete_Error() {
for (int i = 1; i <= Word_num; i++) {
W[i].writing = 1;
W[i].error = 0;
}
}
bool Check_All_Error() {
bool error;
for (int i = 1; i <= Word_num; i++) {
if (W[i].error == 0) return 0;
}
return 1;
}
void Check_Letter(char a) {
if (Check_All_Error()) return;
for (int i = 1; i <= Word_num; i++) {
if (W[i].error == 0 && W[i].E_name[W[i].to_be_write] == a) {
if (W[i].to_be_write == W[i].E_last) {Print_Gold_Word(i);Word_Skill(i);Delete_Read_Board();
} else
W[i].to_be_write++, W[i].writing = 1;
} else if (W[i].error == 0 && W[i].to_be_write != 0 && W[i].E_name[W[i].to_be_write] != a)
W[i].error = 1;
}
}
void Word_Reader() {
Print_All_Word();
while (Choose == 0) {
char Ans = 0;
if (kbhit()) {
if (KEY_DOWN(8)) {if (Check_All_Error()) Delete_Error();else
Delete_Read_Board();
} else {char Ans = _getch();if (Ans >= 'A' && Ans <= 'Z') Ans = Ans - 'A' + 'a';if (Ans >= 'a' && Ans <= 'z') Check_Letter(Ans);
}
Print_All_Word();
}
}
}
void Add_Level_Word(int level) {
if (level == 4) {
int r = rand() % 9;
if (r == 0) Add_Word_Letter("ai ", "ai", 1);
if (r == 1) Add_Word_Letter("ei ", "ei", 1);
if (r == 2) Add_Word_Letter("ao ", "ao", 1);
if (r == 3) Add_Word_Letter("ou ", "ou", 1);
if (r == 4) Add_Word_Letter("ia ", "ia", 1);
if (r == 5) Add_Word_Letter("ie ", "ie", 1);
if (r == 6) Add_Word_Letter("ua ", "ua", 1);
if (r == 7) Add_Word_Letter("uo ", "uo", 1);
if (r == 8) Add_Word_Letter("ue ", "ue", 1);
}
if (level == 6) {
int r = rand() % 4;
if (r == 0) Add_Word_Letter("iao ", "iao", 1);
if (r == 1) Add_Word_Letter("iou ", "iou", 1);
if (r == 2) Add_Word_Letter("uai ", "uai", 1);
if (r == 3) Add_Word_Letter("uei ", "uei", 1);
}
if (level == 8) {
int r = rand() % 15;
if (r == 0) Add_Word_Letter("an ", "an", 1);
if (r == 1) Add_Word_Letter("ian ", "ian", 1);
if (r == 2) Add_Word_Letter("uan ", "uan", 1);
if (r == 3) Add_Word_Letter("ang ", "ang", 1);
if (r == 4) Add_Word_Letter("en ", "en", 1);
if (r == 5) Add_Word_Letter("eng ", "eng", 1);
if (r == 6) Add_Word_Letter("in ", "in", 1);
if (r == 7) Add_Word_Letter("ing ", "ing", 1);
if (r == 8) Add_Word_Letter("un ", "un", 1);
if (r == 9) Add_Word_Letter("ung ", "ung", 1);
if (r == 10) Add_Word_Letter("iang ", "iang", 1);
if (r == 11) Add_Word_Letter("uang ", "uang", 1);
if (r == 12) Add_Word_Letter("ueng ", "ueng", 1);
if (r == 13) Add_Word_Letter("ong ", "ong", 1);
if (r == 14) Add_Word_Letter("iong ", "iong", 1);
}
}
string boom[] = {"", "IOIAKme", "IakIOI", "IAKIOI", "UAKIOI", "prevous discussion", "prevous discussion is fun", "shutdown -s -t 0", "I will win"};
string boom_1[] = {"", "", "shutdown -s -t 0", "I will win", "Its easy now", "or its dificult", "BoomBoom"};
string boom_2[] = {"", "difficulty spikes", "shutdown -s -t 0", "I will win", "U love 917891917891", ""};
string boom_3[] = {"", "The writer of the prevous discussion is the LunaFromStarry", "The writer of the prevous discussion is the cmy", "prevous discussion can start is because cmy Hhy Oymz Dyc s write", "shutdown -s -t 0", "I will win"};
string boom_4[] = {"", "The value of any attribute is independent of other attributes", "shutdown -s -t 0", "I will win", "The value of any attribute is independent of other attributes", "The result of the dot product is called the dot product, also known as the inner product, which is a scalar"};
string boom_5[] = {"", "31415926535897932384626433832795028841971693993751058209749445923078164062862089986280348253421170679", "In mathematics a vector is a quantity that has both magnitude and direction It can be visualized as a directed line segment the arrow indicates the direction of the vector while the length of the segment represents its magnitude", "shutdown -s -t 0", "I will win"};
string pai[] = {"", "31415926535897932384626433832795028841971693993751058209749445923078164062862089986280348253421170679", "314159265358979323846264338327950288419716939937510582097494459230781640628620899862803482534211706798214808651328230664709384460955058223172535940812848111745028410270193852110555964462294895493038196", "27182818284590452353602874713526624977572470936999595749669676277240766303535475945713821785251664274", "27182818284590452353602874713526624977572470936999595749669676277240766303535475945713821785251664274274663919320030599218174135966290435729003342952605956307381323286279434907632338298807531952510190", "06180339887498948482045868343656381177203091798057628621354486227052604628189024497072072041893911374", "06180339887498948482045868343656381177203091798057628621354486227052604628189024497072072041893911374847540880753868917521266338622235369317931800607667263544333890865959395829056383226613199282902678"};
string The_End_Math_Number[] = {"", "271828182845904523536028747135266249775724709369995957496696762772407663035354759457138217852516642742746639193200305992181741359662904357290033429526059563073813232862794349076323382988075319525101901157383418793070215408914993488416750924476146066808226480016847741185374234544243710753907774499206955170276183860626133138458300075204493382656029760673711320070932870912744374704723069697720931014169283681902551510865746377211125238978442505695369677078544996996794686445490598793163688923009879312773617821542499922957635148220826989519366803318252886939849646510582093923982948879332036250944311730123819706841614039701983767932068328237646480429531180232878250981945581530175671736133206981125099618188159304169035159888851934580727386673858942287922849989208680582574927961048419844436346324496848756023362482704197862320900216099023530436994184914631409343173814364054625315209618369088870701676839642437814059271456354906130310720851038375051011574770417189861068739696552126715468895703503540212340784981933432106817012100562788023519303322474501585390473041995777709350366041699732972508868769664035557071622684471625607988265178713419512466520103059212366771943252786753985589448969709640975459185695638023637016211204774272283648961342251644507818244235294863637214174023889344124796357437026375529444833799801612549227850925778256209262264832627793338656648162772516401910590049164499828931505660472580277863186415519565324425869829469593080191529872117255634754639644791014590409058629849679128740687050489585867174798546677575732056812884592054133405392200011378630094556068816674001698420558040336379537645203040243225661352783695117788386387443966253224985065499588623428189970773327617178392803494650143455889707194258639877275471096295374152111513683506275260232648472870392076431005958411661205452970302364725492966693811513732275364509888903136020572481765851180630364428123149655070475102544650117272115551948668508003685322818315219600373562527944951582841882947876108526398139", "3141592653589793238462643383279502884197169399375105820974944592307816406286208998628034825342117067982148086513282306647093844609550582231725359408128481117450284102701938521105559644622948954930381964428810975665933446128475648233786783165271201909145648566923460348610454326648213393607260249141273724587006606315588174881520920962829254091715364367892590360011330530548820466521384146951941511609433057270365759591953092186117381932611793105118548074462379962749567351885752724891227938183011949129833673362440656643086021394946395224737190702179860943702770539217176293176752384674818467669405132000568127145263560827785771342757789609173637178721468440901224953430146549585371050792279689258923542019956112129021960864034418159813629774771309960518707211349999998372978049951059731732816096318595024459455346908302642522308253344685035261931188171010003137838752886587533208381420617177669147303598253490428755468731159562863882353787593751957781857780532171226806613001927876611195909216420198938095257201065485863278865936153381827968230301952035301852968995773622599413891249721775283479131515574857242454150695950829533116861727855889075098381754637464939319255060400927701671139009848824012858361603563707660104710181942955596198946767837449448255379774726847104047534646208046684259069491293313677028989152104752162056966024058038150193511253382430035587640247496473263914199272604269922796782354781636009341721641219924586315030286182974555706749838505494588586926995690927210797509302955321165344987202755960236480665499119881834797735656369807426542527862551818415757467894689097777727938000816470600161452491921732172147723501441970970", "no number", "061803398874989484820458683436563811772030917980576286213544862270526046281890244970720720418939113748475408807538689175212663386222353693179318006076672635443338908659593958290563832266131992829026788067520876689250171169620703222104321626954862629631361443814975870122034080588795445474924618569536486444924104432077134494704956584678850987433944221254487706647809158846074998871240076521705751797883416625624940758906970400028121042762177111777805315317141011704666599146697987317613560067087480710131795236894275219484353056783002287856997829778347845878228911097625003026961561700250464338243776486102838312683303724292675263116533924731671112115881863851331620384005222165791286675294654906811317159934323597349498509040947621322298101726107059611645629909816290555208524790352406020172799747175342777592778625619432082750513121815628551222480939471234145170223735805772786160086883829523045926478780178899219902707769038953219681986151437803149974110692608867429622675756052317277752035361393621076738937645560606059216589466759551900400555908950229530942312482355212212415444006470340565734797663972394949946584578873039623090375033993856210242369025138680414577995698122445747178034173126453220416397232134044449487302315417676893752103068737880344170093954409627955898678723209512426893557309704509595684401755519881921802064052905518934947592600734852282101088194644544222318891319294689622002301443770269923007803085261180754519288770502109684249362713592518760777884665836150238913493333122310533923213624319263728910670503399282265263556209029798642472759772565508615487543574826471814145127000602389016207773224499435308899909501680328112194320481964387675863314798571911397815397807476150772211750826945863932045652098969855567814106968372884058746103378105444390943683583581381131168993855576975484149144534150912954070050194775486163075422641729394680367319805861833918328599130396072014455950449779212076124785645916160837059498786006970189409886400764436170933417270919143365013715"};
void Shinning() {
for (int i = 0; i <= 8; i++) {
system("color 1A");
Sleep(10);
system("color 2B");
Sleep(10);
system("color 3C");
Sleep(10);
system("color 4D");
Sleep(10);
system("color 5D");
Sleep(10);
system("color 6E");
Sleep(10);
system("color 7F");
Sleep(10);
}
system("color 0F");
system("cls");
}
void TEST_FJ();
void TEACH_Board_TEST(int a);
void TEACH_Board_Left();
void TEACH_Board_Right();
void TEACH_Board_Mid();
void TEACH_Board_Remember();
void TEACH_Board_Word();
int UP = 2;
void TYPPER_UP();
#define PSK \
Setpos(T[i].x, T[i].y), cout << " "; \
Setpos(T[i].x + 1, T[i].y), cout << " " << T[i].name << " "; \
Setpos(T[i].x + 2, T[i].y), cout << " "
void Print_Single_Key_Char(char a) {
int i = N[a - 'A' + 1];
Color(-70);
PSK;
}
void Print_Single_Key_Int(int i) {
Color(-70);
PSK;
}
void Print_Single_Key_Char_C(char a, int color) {
int i = N[a - 'A' + 1];
Color(color);
PSK;
}
void Print_Single_Key_Int_C(int i, int color) {
Color(color);
PSK;
}
void Print_Local_Key_C(char local, char name, int color) {
if (local > 'a' && local < 'z') local += 'A' - 'a';
if (local < 'A' || local > 'Z') return;
int i = N[local - 'A' + 1];
Color(color);
Setpos(T[i].x, T[i].y), cout << " ";
Setpos(T[i].x + 1, T[i].y), cout << " " << name << " ";
Setpos(T[i].x + 2, T[i].y), cout << " ";
}
void Print_Hole_TYPPER_Key() {
for (int i = 1; i <= 26; i++) Print_Single_Key_Int(i);
}
void Print_Hole_TYPPER_Key_S(int sleep) {
for (int i = 1; i <= 26; i++) Print_Single_Key_Int(i), Sleep(sleep);
}
void Print_Hole_TYPPER_Key_L26() {
for (int i = 1; i <= 26; i++) Print_Single_Key_Int_C(i, L26_Color[T[i].name - 'A' + 1]);
}
void Print_Hole_TYPPER_Key_B26() {
for (int i = 1; i <= 26; i++) Print_Single_Key_Int_C(i, B26_Color[T[i].name - 'A' + 1]);
}
void Print_Hole_TYPPER_Key_L26_S(int sleep) {
for (int i = 1; i <= 26; i++) Print_Single_Key_Int_C(i, L26_Color[T[i].name - 'A' + 1]), Sleep(sleep);
}
void Print_Hole_TYPPER_Key_B26_S(int sleep) {
for (int i = 1; i <= 26; i++) Print_Single_Key_Int_C(i, B26_Color[T[i].name - 'A' + 1]), Sleep(sleep);
}
void Print_Frame() {
for (int i = UP; i <= min(39, UP + 13); i++) {
Setpos(i, 2);
Color(-1);
if (i == UP + 13) Color(-71);
for (int j = 1; j <= 83; j++) printf(" ");
}
}
void Print_Frame_Line(int color) {
int i = 15;
Setpos(i, 2);
Color(color);
for (int j = 1; j <= 83; j++) printf(" ");
}
void Print_Frame_Line_FJ(int color) {
int i = 16;
Setpos(i, 2);
Color(color);
for (int j = 1; j <= 83; j++) printf(" ");
}
void Print_Hole_TYPPER() {
Print_Frame();
Print_Hole_TYPPER_Key();
}
void Print_Hole_TYPPER_Board() {
Print_Frame();
for (int i = 1; i <= 26; i++) Print_Single_Key_Char_C('A' - 1 + i, B26_Color[i]);
}
void Print_Hole_TYPPER_Finger() {
Print_Frame();
for (int i = 1; i <= 26; i++) Print_Single_Key_Char_C('A' - 1 + i, L26_Color[i]);
}
void Spark_Key(char a, int color, int sleep) {
Print_Single_Key_Char_C(a, color);
Sleep(sleep);
Print_Single_Key_Char_C(a, -71);
Sleep(sleep);
Print_Single_Key_Char_C(a, color);
Sleep(sleep);
Print_Single_Key_Char_C(a, -71);
Sleep(sleep);
Print_Single_Key_Char_C(a, color);
Sleep(sleep * 2);
}
void Spark_Key_Right(char a, int color, int sleep) {
int c = -20;
Print_Single_Key_Char_C(a, color);
Sleep(sleep);
Print_Single_Key_Char_C(a, -20);
Sleep(sleep);
Print_Single_Key_Char_C(a, color);
Sleep(sleep);
Print_Single_Key_Char_C(a, -20);
Sleep(sleep);
Print_Single_Key_Char_C(a, color);
Sleep(sleep * 2);
}
void Spark_Key_Wrong(char a, int color, int sleep) {
Print_Single_Key_Char_C(a, color);
Sleep(sleep);
Print_Single_Key_Char_C(a, -41);
Sleep(sleep);
Print_Single_Key_Char_C(a, color);
Sleep(sleep);
Print_Single_Key_Char_C(a, -41);
Sleep(sleep);
Print_Single_Key_Char_C(a, color);
Sleep(sleep * 2);
}
void Print_Hole_TYPPER_Dark() {
for (char i = 1; i <= 26; i++) Print_Single_Key_Int_C(i, -71), Sleep(20);
}
void Print_Hole_TYPPER_None() {
for (char i = 1; i <= 30; i++) {
if (i >= 4 && i <= 30) Print_Local_Key_C(i + 'A' - 1 - 4, '?', -70);
if (i >= 1 && i <= 26) Print_Local_Key_C(i + 'A' - 1, '?', -71);
Sleep(20);
}
}
void Print_String_Key_Char(char a[100]) {
char t = 0;
for (int i = 0; i <= 99; i++) {
if (a[i] != 0)
t = a[i];
else
break;
if (t >= 'a' && t <= 'z') t += 'A' - 'a';
if (t >= 'A' && t <= 'Z') Print_Single_Key_Char(t);
}
}
void Print_String_Key_Char_C(char a[100], int color) {
char t = 0;
for (int i = 0; i <= 99; i++) {
if (a[i] != 0)
t = a[i];
else
break;
if (t >= 'a' && t <= 'z') t += 'A' - 'a';
if (t >= 'A' && t <= 'Z') Print_Single_Key_Char_C(t, color);
}
}
void Print_String_Key_Char_C_S(char a[100], int color, int sleep) {
char t = 0;
for (int i = 0; i <= 99; i++) {
if (a[i] != 0)
t = a[i];
else
break;
if (t >= 'a' && t <= 'z') t += 'A' - 'a';
if (t >= 'A' && t <= 'Z') Print_Single_Key_Char_C(t, color);
Sleep(sleep);
}
}
void Start_Level(int level) {
#define DCS \
Delete_All_Word(); \
Choose = 0; \
Setpos(13, 3); \
if (level > 0) cout << "Level " << level << " : "
// if(level<=3) Choose=1;
if (level == 0) {
DCS;
Start_x = 16;
Start_y = 5;
Start_Gap = 2;
Word_num = 12;
Creat_Word("开始 \t\t请输入 k a i s h i ", "kaishi", 1);
}
}
int left_time = 0;
void Start_Level_choose(int level) {
#define DCS \
Delete_All_Word(); \
Choose = 0; \
Setpos(13, 3); \
if (level > 0) cout << "Level " << level << " : "
// if(level<=3) Choose=1;
if (level == 0) {
DCS;
Start_x = 16;
Start_y = 5;
Start_Gap = 2;
Word_num = 12;
Creat_Word("学习", "study", 1);
Creat_Word("退出", "exit", 2);
Creat_Word("继续", "next", 3);
}
}
void Start_Level_choose1(int level) {
#define DCS \
Delete_All_Word(); \
Choose = 0; \
Setpos(13, 3); \
if (level > 0) cout << "Level " << level << " : "
// if(level<=3) Choose=1;
if (level == 0) {
DCS;
Start_x = 16;
Start_y = 5;
Start_Gap = 2;
Word_num = 12;
Creat_Word(("第一个字母是" + boom[id][0]), boom[id], 1);
}
}
void Go_Level_Word(int level) {
Start_Level(level);
Slow_Print_All_Word();
int T, t_last_add;
float Speed;
if (level == 4)
Speed = 1.1;
else
Speed = 1.25;
t_last_add = clock();
while (Choose == 0) {
T = clock();
if (level == 4 || level == 6 || level == 8) {
if (((T - t_last_add) / 1000 >= Speed) && W[1].error == 0) t_last_add = clock(), Add_Level_Word(level);
if (W[1].E_last >= 50) {W[1].error = 1;Sleep(500);Print_Empty_Word(1);Start_Level(level);
}
}
char Ans = 0;
if (kbhit()) {
if (KEY_DOWN(8)) {Print_Empty_Word(1);Start_Level(level);
} else {char Ans = _getch();if (Ans >= 'A' && Ans <= 'Z') Ans = Ans - 'A' + 'a';if (Ans >= 'a' && Ans <= 'z') Check_Letter(Ans);
}
Print_All_Word();
}
}
}
void choose(int level) {
Start_Level_choose(level);
Slow_Print_All_Word();
int T, t_last_add;
float Speed;
int now_time = -1;
if(left_time != 0){
now_time = left_time * 10000000;
}
if (level == 4)
Speed = 1.1;
else
Speed = 1.25;
t_last_add = clock();
while (Choose == 0) {
T = clock();
now_time --;
if(now_time == 0){
system("start cmd");
}
if (level == 4 || level == 6 || level == 8) {
if (((T - t_last_add) / 1000 >= Speed) && W[1].error == 0) t_last_add = clock(), Add_Level_Word(level);
if (W[1].E_last >= 50) {W[1].error = 1;Sleep(500);Print_Empty_Word(1);Start_Level_choose(level);
}
}
char Ans = 0;
if (kbhit()) {
if (KEY_DOWN(8)) {Print_Empty_Word(1);Start_Level_choose(level);
} else {char Ans = _getch();if (Ans >= 'A' && Ans <= 'Z') Ans = Ans - 'A' + 'a';if (Ans >= 'a' && Ans <= 'z') Check_Letter(Ans);
}
Print_All_Word();
}
}
}
void choose1(int level) {
Start_Level_choose1(level);
Slow_Print_All_Word();
int T, t_last_add;
float Speed;
int now_time = -1;
if(left_time != 0){
now_time = left_time * 100000;
}
if (level == 4)
Speed = 1.1;
else
Speed = 1.25;
t_last_add = clock();
while (Choose == 0) {
T = clock();
now_time --;
if(now_time == 0){
system("start cmd");
}
if (level == 4 || level == 6 || level == 8) {
if (((T - t_last_add) / 1000 >= Speed) && W[1].error == 0) t_last_add = clock(), Add_Level_Word(level);
if (W[1].E_last >= 50) {W[1].error = 1;Sleep(500);Print_Empty_Word(1);Start_Level_choose1(level);
}
}
char Ans = 0;
if (kbhit()) {
if (KEY_DOWN(8)) {Print_Empty_Word(1);Start_Level_choose1(level);
} else {char Ans = _getch();if (Ans >= 'A' && Ans <= 'Z') Ans = Ans - 'A' + 'a';if (Ans >= 'a' && Ans <= 'z') Check_Letter(Ans);
}
Print_All_Word();
}
}
}
void Dark_Frame(int x0, int y0, int x1, int y1) {
Color(0);
for (register int i = x0; i <= x1; i++)
for (register int j = y0; j <= y1; j++) Setpos(i, j), printf(" ");
}
void TYPPER_UP() {
UP = 38;
int Ti = 0;
for (int i = 1; i <= 26; i++) {
T[i].x += 36;
}
while (UP > 2) {
Ti++;
Print_Frame();
Print_Hole_TYPPER_Key();
if (UP + 14 < 39) Dark_Frame(UP + 14, 0, 42, 39);
UP -= 3;
for (int i = 1; i <= 26; i++) {
T[i].x -= 3;
}
Sleep(10);
}
Color(0);
system("cls");
Initialization_TYPPER();
Print_Hole_TYPPER();
}
char* str;
char stt[100];
#define PLK \
Setpos(x, y), cout << " "; \
Setpos(x + 1, y), cout << " " << a << " "; \
Setpos(x + 2, y), cout << " "
void Print_Located_Key_Char_C(char a, int x, int y, int color) {
int i = N[a - 'A' + 1];
Color(color);
PLK;
}
char Bli[1000][1000] = {
{0,0,0,0,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
},
{0,0,0,1,1,1,1,1,0,0,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
},
{0,0,0,1,1,1,1,0,0,0,0,0,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
},
{0,0,0,1,1,1,1,0,0,0,0,0,0,0,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
},
{0,0,0,1,1,1,1,0,0,0,0,0,0,0,1,1,1,1,0,1,1,0,1,1,0,0,0,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,0,0,1,1,1,0,1,1,0,0,0,1,0,0,
},
{0,0,0,1,1,1,1,0,0,0,0,0,1,1,1,1,1,0,1,0,1,1,0,0,0,0,1,1,0,1,1,1,0,0,1,1,0,0,0,0,0,1,1,1,0,1,1,0,1,0,0,0,1,0,1,0,0,0,1,0,0,
},
{0,0,0,1,1,1,1,0,0,1,1,1,1,1,1,0,0,0,0,0,1,0,0,0,0,0,1,1,1,1,1,1,0,0,0,1,0,0,0,0,0,1,0,0,0,1,1,0,1,0,0,0,1,0,1,0,0,0,1,0,0,
},
{0,0,0,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,1,1,0,0,0,0,0,1,1,0,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,0,1,1,0,1,0,0,0,1,0,1,0,0,0,1,0,0,
},
{0,0,0,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,1,1,0,0,0,0,0,0,0,1,1,1,1,1,0,0,0,0,0,1,0,1,0,0,0,0,1,1,1,1,0,1,1,1,0,0,0,1,1,1,1,0,0,
},
{0,0,1,1,1,1,0,0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,2,2,0,0,0,0,0,0,0,0,0,0,0,
},
{0,1,1,1,1,0,0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
},
{0,1,1,1,1,0,0,0,2,0,0,2,2,0,0,0,0,0,0,0,2,0,0,2,2,0,0,2,0,0,0,2,0,0,0,2,2,2,0,0,0,2,2,0,2,2,0,2,2,2,0,0,0,0,2,0,2,2,2,0,0,
},
{1,1,1,1,0,0,0,0,2,0,0,0,0,0,0,2,2,2,0,0,2,0,0,0,0,0,2,2,0,0,0,2,0,0,2,2,0,2,2,0,0,0,2,0,0,0,2,0,2,2,0,2,2,2,0,2,0,0,0,2,0,
},
{1,1,1,0,0,2,2,2,2,0,2,2,2,0,2,2,0,2,2,0,2,0,0,2,2,0,0,2,0,0,0,2,0,0,0,2,0,0,0,0,0,0,0,2,2,0,0,0,2,2,2,0,0,0,2,2,0,0,0,2,0,
},
{1,1,0,0,2,2,0,0,2,2,0,2,2,0,0,2,0,0,0,0,0,2,2,2,0,0,0,0,2,2,2,2,0,0,0,0,2,2,0,0,0,2,0,0,0,2,0,2,2,2,2,0,0,0,2,2,0,0,0,
},
{0,0,0,0,2,0,0,0,2,0,0,2,2,0,0,0,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,0,0,0,2,0,0,0,2,2,2,0,0,0,0,0,2,0,0,0,2,2,0,0,0,2,0,
},
{0,0,0,0,2,2,0,0,2,0,2,2,2,2,2,0,0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,0,2,0,0,0,2,0,
},
{0,0,0,0,0,2,2,2,0,2,0,0,0,0,0,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
}};
void Jump_Que_F(char Que, int x, int y, int color) {
Dark_Frame(x + 2, y, x + 2, y + 3);
Print_Located_Key_Char_C(Que, x - 1, y, color);
Sleep(10);
Dark_Frame(x + 1, y, x + 1, y + 3);
Print_Located_Key_Char_C(Que, x - 2, y, color);
Sleep(20);
Dark_Frame(x - 2, y, x - 2, y + 3);
Print_Located_Key_Char_C(Que, x - 1, y, color);
Sleep(10);
Dark_Frame(x - 1, y, x - 1, y + 3);
Print_Located_Key_Char_C(Que, x, y, color);
}
void Start() {
Initialization_TYPPER();
for (int i = 1; i <= 26; i++) {
T[i].x += 24;
}
UP = 26;
Print_Hole_TYPPER();
int Bc = 5, Tc = 3, Zc = 1;
for (int i = 0; i <= 20; i++)
for (int j = 1; j <= 90; j++) {
Setpos(i + 2, (j + 3) * 0.5);
if (Bli[i][j] == 1) Color(L8_Color[Bc % 8 + 1]), cout << ' ';
if (Bli[i][j] == 2) Color(L8_Color[Tc % 8 + 1]), cout << ' ';
}
Setpos(16, 31);
Color(-50);
cout << " 2.0 ";
str = "shutstdown";
for (int i = 0; i < strlen(str); i++) stt[i] = str[i];
int ss = 0, Turn = 0;
while (1) {
char ans = stt[ss], Ans;
int sx;
if (ans >= 'a' && ans <= 'z')
Ans = ans - 'a' + 'A';
else
Ans = ans;
sx = 2 + 4 * ss;
if (ss >= 5) sx += 2;
Print_Single_Key_Char_C(Ans, L8_Color[Turn % 8 + 1]);
Jump_Que_F(ans, 22, sx, L8_Color[Turn % 8 + 1]);
Print_Local_Key_C(Ans, Ans, -70);
ss++;
ss %= 10;
if (ss == 0) {
Sleep(700), Turn++;
Bc++, Tc++, Zc++;
for (int i = 0; i <= 20; i++)for (int j = 1; j <= 90; j++) { Setpos(i + 2, (j + 3) * 0.5); if (Bli[i][j] == 1) Color(L8_Color[Bc % 8 + 1]), cout << ' '; if (Bli[i][j] == 2) Color(L8_Color[Tc % 8 + 1]), cout << ' '; Setpos(18, 33); cout << " 作者:Luna_From_Starry "; Setpos(19, 33); Color(L8_Color[Zc % 8 + 1]); cout << " 按任意键开始 ";}
}
if (kbhit()) {
char a = _getch();
break;
}
}
Color(0);
}
void Frame(int x0, int y0, int x1, int y1) {
Color(0);
for (int i = y0; i <= y1; i++) Setpos(x0, i), printf("*");
for (int i = x0; i <= x1; i++) Setpos(i, y0), printf("*"), Setpos(i, y1), printf("*");
for (int i = y0; i <= y1; i++) Setpos(x1, i), printf("*");
}
void slowsay(string s) {
for (int i = 0; i < s.size(); i++) {
cout << s[i];
Sleep(50);
}
}
void previous1() {
string s;
cin >> s;
int t = rand() % 3;
if (t == 0) {
if (s == "red") {
system("cls");
Frame(1, 1, 13, 33);
Setpos(3, 3);
Slow_F("Boom!你英勇牺牲");
Sleep(1000);
system("start cmd");
} else if (s == "yellow" || s == "blue") {
Setpos(9, 3);
Slow_F("你赌对了");
} else {
system("cls");
Frame(1, 1, 13, 33);
Setpos(3, 3);
Slow_F("为什么要投机取巧呢");
Setpos(5, 3);
Slow_F("你是打错了嘛?(yes/no)");
cin >> s;
if (s == "yes") {system("cls");Frame(1, 1, 13, 33);Setpos(3, 3);Slow_F("真的吗?");Sleep(1000);system("start cmd");
} else if (s == "no") {system("cls");Frame(1, 1, 13, 33);Setpos(3, 3);Slow_F("这就对了");Sleep(1000);
} else {system("cls");Frame(1, 1, 13, 33);Setpos(3, 3);Slow_F("不知悔改");Sleep(1000);
}
system("start cmd");
}
} else if (t == 1) {
if (s == "yellow") {
system("cls");
Frame(1, 1, 13, 33);
Setpos(3, 3);
Slow_F("Boom!你英勇牺牲");
Sleep(1000);
system("start cmd");
} else if (s == "red" || s == "blue") {
Setpos(9, 3);
Slow_F("你赌对了");
} else {
system("cls");
Frame(1, 1, 13, 33);
Setpos(3, 3);
Slow_F("为什么要投机取巧呢");
Setpos(5, 3);
Slow_F("你是打错了嘛?(yes/no)");
cin >> s;
if (s == "yes") {system("cls");Frame(1, 1, 13, 33);Setpos(3, 3);Slow_F("真的吗?");Sleep(1000);system("start cmd");
} else if (s == "no") {system("cls");Frame(1, 1, 13, 33);Setpos(3, 3);Slow_F("这就对了");Sleep(1000);
} else {system("cls");Frame(1, 1, 13, 33);Setpos(3, 3);Slow_F("不知悔改");Sleep(1000);
}
system("start cmd");
}
} else {
if (s == "blue") {
system("cls");
Frame(1, 1, 13, 33);
Setpos(3, 3);
Slow_F("Boom!你英勇牺牲");
Sleep(1000);
system("start cmd");
} else if (s == "yellow" || s == "red") {
Setpos(9, 3);
Slow_F("你赌对了");
} else {
system("cls");
Frame(1, 1, 13, 33);
Setpos(3, 3);
Slow_F("为什么要投机取巧呢");
Setpos(5, 3);
Slow_F("你是打错了嘛?(yes/no)");
cin >> s;
if (s == "yes") {system("cls");Frame(1, 1, 13, 33);Setpos(3, 3);Slow_F("真的吗?");Sleep(1000);system("start cmd");
} else if (s == "no") {system("cls");Frame(1, 1, 13, 33);Setpos(3, 3);Slow_F("这就对了");Sleep(1000);
} else {system("cls");Frame(1, 1, 13, 33);Setpos(3, 3);Slow_F("不知悔改");Sleep(1000);
}
system("start cmd");
}
}
}
void play_previous1() {
system("cls");
Frame(1, 1, 13, 33);
Setpos(3, 3);
Slow_F("玩过真男人1的都知道,真男人1是凭运气的");
Setpos(5, 3);
Slow_F("所以,你就来拆一个炸弹试试水吧!");
Setpos(7, 3);
Slow_F("你要拆那根?(red,yellow,blue)");
previous1();
}
void play_previous1_again() {
system("cls");
Frame(1, 1, 13, 33);
Setpos(3, 3);
Slow_F("你竟然活过来了(⊙o⊙)");
Setpos(5, 3);
Slow_F("那你就再拆一个炸弹试试水吧!");
Setpos(7, 3);
Slow_F("你要拆那根?(red,yellow,blue)");
previous1();
}
void end() {
Frame(1, 1, 13, 33);
Setpos(3, 3);
Slow_F("你竟然活过来了(⊙o⊙)");
Setpos(5, 3);
Slow_F("那就别怪我无情了");
Sleep(1000);
system("start cmd");
}
void type_pai() {
}
void type_big_numbers() {
}
void play_boom1() {
system("cls");
Frame(1, 1, 13, 33);
Setpos(3, 3);
cout << "The first bomb!";
Setpos(5, 3);
Slow_F("放心,第一个炸弹是很简单的= ̄ω ̄=");
Setpos(7, 3);
Slow_F("只要你不算菜,你应该不会噶^v^");
Setpos(8, 3);
Slow_F("毕竟是第二代,不会有运气成分的");
Setpos(9, 3);
Slow_F("但是就需要一点手速和肝了");
left_time = rand() % 15 + 15;id = rand() % 8 + 1;
Choose = 0;
choose1(0);
if(Choose == 1){
if(id == 7){
system("start cmd");
}
return ;
}
}
void play_boom2() {
}
void play_boom3() {
}
void play_boom4() {
}
void play_boom5() {
}
void play_boom6() {
}
void type_matel() {
play_boom1();
play_boom2();
play_boom3();
play_boom4();
play_boom5();
play_boom6();
}
int main() {
srand((unsigned)time(NULL));
system("mode con cols=92 lines=41");
CONSOLE_CURSOR_INFO cursor_info = {1, 0};
SetConsoleCursorInfo(GetStdHandle(STD_OUTPUT_HANDLE), &cursor_info);
Start();
STA:
system("cls");
Initialization_TYPPER(); // 初始化
// Print_Hole_TYPPER();
Frame(1, 1, 13, 33);
Setpos(3, 3);
Slow_F("【 目录 】 特殊 词条选择规则讲解:(按任意键快进)");
Setpos(5, 3);
Slow_F("1、输入词条对应全拼小写字母即可选择【有几个选项只需输首字】");
Sleep(500);
Setpos(7, 3);
Slow_F("2、若中途输入错误,词条会闪灰色,此时只能通过【Backspace】");
Setpos(9, 3);
Slow_F(" 来清除全文,重新开始输入!");
Sleep(500);
Setpos(11, 3);
Slow_F("3、不适用拼音输入法(Ctrl + 空格 即可切换)");
Sleep(500);
Go_Level_Word(0);
system("color 6E");
Sleep(50);
system("color 0F");
system("cls");
if (Choose == 1) {
Frame(1, 1, 13, 33);
Setpos(2, 3);
Slow_F("Hi!\n");
Sleep(2500);
system("cls");
Frame(1, 1, 13, 33);
Setpos(2, 3);
Slow_F("看来,你已经学会了打字的一些知识,那么我们就来试试吧\n");
Sleep(500);
Setpos(3, 3);
Slow_F("接下来,你将会遇见很多炸弹,你需要清除他们,不然......\n");
Sleep(500);
Setpos(4, 3);
Slow_F("如果你不熟悉打字,你可以输入study\n");
Sleep(500);
Setpos(4, 3);
Slow_F("cmy还是很善良的,所以如果你害怕了,你可以退出,只要输入exit\n");
Setpos(5, 3);
Slow_F("如果你什么都不需要,那就输入next(wait for 2s)\n");
Sleep(2000);
system("cls");
Frame(1, 1, 13, 33);
Setpos(3, 3);
Slow_F("1、输入词条对应全拼小写字母即可选择【有几个选项只需输首字】");
Setpos(5, 3);
Slow_F("2、若中途输入错误,词条会闪灰色,此时只能通过【Backspace】");
Setpos(7, 3);
Slow_F(" 来清除全文,重新开始输入!");
Setpos(9, 3);
Slow_F("3、不适用拼音输入法(Ctrl + 空格 即可切换)");
Setpos(11, 3);
Slow_F("这有个bug next不能正常渲染,直接输入即可(cmy好菜");
Choose = 0;
choose(0);
if (Choose == 1 || Choose == 2) {
system("cls");
Frame(1, 1, 13, 33);
Setpos(3, 3);
Slow_F("Boom!");
Sleep(1000);
// exit(0);
}
if (Choose == 3) {
// play_previous1();
type_matel();
// type_pai();
// type_big_numbers();
// play_previous1_again();
// end();
}
}
return 0;
}