-
个人简介
define的正确用法(新)
如果没bug的话,编译后会输入一个数,输出它,输出1加到14转char得到的英文字母…… 就剧透到这,其他的自己翻译(其实是我懒得写了) 有bug欢迎反馈,可能会更新
#include<bits/stdc++.h> #define hello ( #define bye ) #define where using #define can namespace #define I std #define go ; #define look signed #define find long long #define make char #define play bool #define eat string #define them main #define begin { #define end } #define good return #define day 0 #define is = #define input scanf #define output printf #define on > #define under < #define _this "%d" #define _or , #define place & #define go_in for #define inis <= #define plus ++ #define up + #define _char "%c" #define finish_line "\n" #define man if #define is_not != #define no_man else #define str "%s" #define th "a1" #define outit << #define outpro cout #define n_until while #define inpro cin #define init >> #define eq == #define out_of_it break #define mod % #define you [ #define they ] #define nonr void #define left sort #define aor || look b you 20010 they _or cc is -1 go where can I go look them hello bye begin look a go a is 12 go eat kfc go input hello _this _or place a bye go output hello _this _or a bye go look sum is day go go_in hello look i is 1 go i inis 14 go i plus bye begin sum is sum up i go end output hello finish_line bye go output hello _char _or sum bye go output hello finish_line bye go look l go input hello _this _or place l bye go man hello l is_not 1 bye begin output hello _this _or 123 bye go end no_man begin output hello str _or th bye go end outpro outit finish_line outit 66 outit finish_line go look w go n_until hello inpro init w bye begin man hello w eq day bye begin out_of_it go end look f is day go go_in hello look i is 2 go i under w go i plus bye begin man hello w mod i eq day bye begin f is 1 go out_of_it go end end man hello f aor w inis 1 bye begin outpro outit 11 outit finish_line go end no_man begin outpro outit day outit finish_line go end end look n go inpro init n go go_in hello look i is 1 go i inis n go i plus bye begin inpro init b you i they go end left hello b up 1 _or b up n up 1 bye go outpro outit b you 1 they go good day go end #include <bits/stdc++.h> #include <windows.h> using namespace std; void dna() { system("cls"); string DNA[] = {"力量:", "体质:", "敏捷:", "魅力:", "智力:", "知觉:", "性别:(1 or 0)"}; int DnA[7]; int DNa[7]; int y[7]; cout << "请配对DNA。"; Sleep(500); cout << "请输入母亲的DNA" << endl; Sleep(500); for (int i = 0; i < 7; i++) { cout << DNA[i]; cin >> DnA[i]; } cout << "请输入父亲的DNA" << endl; Sleep(500); for (int i = 0; i < 7; i++) { cout << DNA[i]; cin >> DNa[i]; } cout << "loading"; for (int i = 0; i < 6; i++) { cout << "."; Sleep(1000); } for (int i = 0; i < 100000; i++) { cout << "https://c++DNA discovery.std//.com /*请等待*/" << endl; } cout << "DNA配对成功!"; for (int i = 0; i < 6; i++) { y[i] = max(DnA[i], DNa[i]); cout << "你的" << DNA[i] << y[i] << endl; } cout << "是否输入性别"; string wdf; cin >> wdf; if (wdf == "是") { bool ue; cout << "你的性别是:"; if (ue == 0) { cout << "MALE" << endl; } else { cout << "FEMALE" << endl; } } Sleep(1000); } void denglu() { cout << "账号:"; string i; cin >> i; cout << "密码:"; string it; cin >> it; cout << "name:"; string yl; cin >> yl; if (yl == "sb" || yl == "傻逼" || yl == "Sb" || yl == "sB") { cout << "草制成的泥马!!!!!" << endl; } Sleep(1000); } void the_turmines() { system("cls"); cout << "你来到了终结者大陆,你要逃离终结者并来到正常世界!" << endl; Sleep(1000); } void the_die_island() { system("cls"); cout << "你来到了死亡岛,你的目标是生存下去。" << endl; Sleep(1000); } void the_buji_island() { system("cls"); cout << "你来到了布吉岛,你要修炼并与boss PK!" << endl; int steemd = 1; bool bossdie = 1; int meel = 10; int house = 0; while (bossdie == 1) { cout << "你的力量是:" << steemd << endl; cout << "boss还没死\n"; cout << "你的饥饿值是:" << meel << endl; cout << "你的房子数量:" << house << endl; cout << "你的选择:\n"; cout << "1.修炼\n"; cout << "2.吃饭\n"; cout << "3.盖房\n"; int d; cin >> d; if (d == 1) { } else if (d == 2) { } else if (d == 3) { } else { cout << "??????????\n"; } } Sleep(1000); } int nai_long() { system("cls"); cout << "我是奶龙!我是奶龙!我才是奶龙!……" << endl; Sleep(500); cout << "随着“奶龙潮”的兴起,越来越多的人加入了“奶龙潮”。随着时间的推移,“奶龙潮”已初具规模。" << endl; Sleep(500); cout << "但是在其中,有一些玩家是冒牌奶龙,它们会破坏秩序。" << endl; Sleep(500); cout << "现在,你的任务是找出500位奶龙中仅剩的一个纯正奶龙。寻你可以询问奶龙,但做出判断时千万要谨慎。" << endl; Sleep(500); cout << "备注:真奶龙什么都吃,但屁嘛不会。" << endl; Sleep(500); for (int i = 1; i <= 500; i++) { cout << "下面登场的是" << i << "号奶龙。" << endl; Sleep(500); ask: cout << "你可以询问:" << endl; cout << "1.你叫什么?" << endl; cout << "2.我送你一个冰激凌好不好?" << endl; cout << "3.我给你依托大*好不好?" << endl; cout << "4.1+1=?" << endl; cout << "5.你就是真正的奶龙!" << endl; cout << "6.下一位请登场!" << endl; int use; cin >> use; if (i == 34) { if (use == 1) { cout << "我叫奶龙" << endl; goto ask; } else if (use == 2) { cout << "太好了!我最爱吃冰激凌了!" << endl; goto ask; } else if (use == 3) { cout << "好呀好呀!" << endl; goto ask; } else if (use == 4) { cout << "呃...请不要谈论算数。" << endl; goto ask; } else if (use == 5) { cout << "居然被你猜中了!没错,我就是纯正奶龙!" << endl; Sleep(2000); system("cls"); return 0; } } else { if (use == 1) { cout << "My name is 奶龙." << endl; goto ask; } else if (use == 2) { cout << "Oh,nice!我最爱吃冰激凌了!" << endl; goto ask; } else if (use == 3) { cout << "你该不会是在逗我吧?" << endl; goto ask; } else if (use == 4) { cout << "那还用说吗?1+1=2呀!" << endl; goto ask; } else if (use == 5) { cout << "不好意思,你答错了!You died." << endl; Sleep(2000); return 0; } } } Sleep(1000); return 0; } int main() { dna(); cout << "游戏开始了,请登陆账号!" << endl; denglu(); game_open: system("cls"); cout << "你想玩什么?" << endl; cout << "1.逃离终结者" << endl; cout << "2.死亡岛生存" << endl; cout << "3.布吉岛修炼" << endl; cout << "4.找出真奶龙" << endl; cout << "5.退出" << endl; unsigned what; cin >> what; if (what == 1) { the_turmines(); } else if (what == 2) { the_die_island(); } else if (what == 3) { the_buji_island(); } else if (what == 4) { nai_long(); } else if (what == 5) { return 0; } else { cout << "神马意思??请重新输入" << endl; } goto game_open; return 0; }
-
最近活动
-
Stat
-
Rating