#include <iostream>#include <string>using namespace std;int welcome();int welcomeCH();int doit();int usually();string name;?int nothing;int main(){ cout << "*******************************************************\n"; cout << "*** ? ? ? ? ? ? ? (隱藏) ? ? ? ? ? ? ? ? ? ?***\n"; cout << "*** ? ? ? ? ? ?(隱藏)? ? ? ? ? ? ? ? ? ***\n"; cout << "*** ? ? ? ? ? ?(隱藏) ? ? ? ? ? ? ? ? ***\n"; cout << "*** ? ? ? ? ? ? ? (隱藏)? ? ? ? ? ? ? ? ? ?***\n"; cout << "*******************************************************\n"; welcome; return 0;}int welcome(){ cout << "==============================================================\n"; cout << "(隱藏):\n"; cout << "(隱藏) ? ? ? ?(隱藏) ? ? ? (隱藏)\n"; cout << "==============================================================\n"; string yuyan; cin >> yuyan; if (nothing == 0) { if (yuyan == "(隱藏)") { welcomeCH; } else cout << "(隱藏)"; } nothing++; return 0;}int welcomeCH(){ cout << "(隱藏)\n"; cin >> name; cout << "(隱藏) " << name << ":"; usually; return 0;}int usually(){ cout << "(隱藏) \n"; cout << "==============================================================\n"; cout << "(隱藏)"; cout << "==============================================================\n"; cout << "(隱藏)"; cout << "==============================================================\n"; cout << "*******************************************************\n"; cout << "*** ? ? ? ? ? ? ? (隱藏) ? ? ? ? ? ? ? ? ? ?***\n"; cout << "*** ? ? ? ? ? ?(隱藏) ? ? ? ? ? ? ? ? ***\n"; cout << "*** ? ? ? ? ? ? ?(隱藏) ? ? ? ? ? ? ? ? ***\n"; cout << "*** ? ? ? ? ? ? ? ?(隱藏) ? ? ? ? ? ? ? ? ? ?***\n"; cout << "*******************************************************\n"; string shezhi; cin >> shezhi; if (shezhi == "設置")? {? doit; } if (shezhi == "再見") { cout << "再見\t"; return 0; } return 0;}int doit(){ cout << "==============================================================\n"; cout << "語言:\n"; cout << "==============================================================\n"; string shezhi; cin >> shezhi; if (shezhi == "語言") { cout << "==============================================================\n"; cout << "語言:\n"; cout << "English ? ? ? ?簡體中文 ? ? ? Fran?ais\n"; cout << "==============================================================\n"; string yuyan; cin >> yuyan; if (yuyan == "簡體中文") { welcomeCH(); } else cout << "(隱藏)"; usually(); } return 0;}
為毛調試時會閃退??C++
Pedro_X983
2016-09-23 20:04:55