#include#include using namespace std; int main() { int a; srand((unsigned int)time(NULL)); int num = rand() % 10000 + 1; cout << "请玩家输入猜测数字" << endl; while (1) { cin >> a; if (a > num) { cout << "数大了!!!" << endl; } else if (a < num) { cout << "额,该怎么告诉你,你猜小了,憨批" << endl; } else { cout << "居然猜对了" << endl; break; } } system("pause"); return 0; }
上仙中午好啊 --一只符华单推人



