恶搞基友最佳选择
#include <bits/stdc++.h>
#include <windows.h>
using namespace std;
string s1[27] = {"hhh", "摔跤", "前来买瓜", "当van ♂door ♂射 ♂手", "做出了一个违背祖宗的决定", "怒食金坷垃", "管理时间", "吃蟹焗煲", "施展混元功法", "被机惨", "被人民群众吊到了路灯上", "使哥谭陷入尴尬", "根据罗翔视频进行犯罪", "生异形", "成为人体试验志愿者", "狂吃奥利给", "呻吟", "开车", "做春梦", "斗地主", "进行py交易", "挤奶", "击剑", "热爱105°C", "在法国投降前占领巴黎", "白嫖", "飞翔"};
string s2[27] = {"hhh", "米奇妙妙屋", "厕所", "葬礼现场", "婚礼现场", "森林里", "冰箱", "大海", "澡堂", "南极", "凶宅", "床上", "酒店", "教室", "青楼", "人民警察执法现场", "农场", "窑子", "金字塔上", "紫禁之巅", "人民大会堂里", "美国总统山上", "埃菲尔铁塔里", "巴黎圣母院", "长城上", "火山里", "因纽特冰屋里"};
string s3[10] = {"愉悦地", "反复地", "快速地", "鬼畜地", "像戴上痛苦面具一样", "114514地", "沉痛地", "比CCF还邪恶地", "女装地", "极其兴奋地"};
int main() {
string s;
char ch1, ch2, ch3;
cout << "欢迎使用“趣味”造句机" << endl;
Sleep(3000);
cout << "使用这个软件,首先要输入一个名字:";
cin >> s;
Sleep(3000);
cout << "然后,你需要输入一个大写字母,一个小写字母以及一个阿拉伯数字" << endl;
Sleep(3000);
cout << "首先,输入个大写字母:";
cin >> ch1;
while (ch1 < 65 || ch1 > 91) {
cout << "这是大写字母吗,**,重输!" << endl;
cin >> ch1;
}
cout << "然后,输入个小写字母:";
cin >> ch2;
while (ch2 < 97 || ch2 > 123) {
cout << "你个*脑袋,重输!" << endl;
cin >> ch2;
}
cout << "最后,请输入一个阿拉伯数字:";
cin >> ch3;
while (ch3 < '0' || ch3 > '9') {
cout << "P社甲级战犯是吧,连数字都看不懂,建议直接处死!\n";
cin >> ch3;
}
system("cls");
cout << "生成中 ";
Sleep(500);
cout << "·";
Sleep(1000);
cout << "·";
Sleep(1000);
cout << "·";
Sleep(1000);
cout << "·";
Sleep(1000);
cout << "·";
Sleep(1000);
cout << "·";
Sleep(1000);
system("cls");
cout << "生成成功!";
Sleep(500);
system("cls");
cout << s << "在" << s2[ch2 - 96] << s3[ch3 - '0'] << s1[ch1 - 64];
return 0;
}
标签:cout,造句,while,ch1,ch2,ch3,趣味,string
From: https://www.cnblogs.com/George-Pig-Orz/p/17594120.html