题解
2023-08-15 15:16:12
发布于:广东
0阅读
0回复
0点赞
#include <bits/stdc++.h>
using namespace std;
int main()
{
string s;
getline(cin,s);//getline()函数:输入字符串,以换行结束(可以读取空格)
if (s == "I had finished my homework!")
cout << "Good Child!";
else if (s == "I went to Guangzhou!")
cout << "You have a good time for Xiaomawang Coding Bootcamp!";
else if (s == "I'm not happy!")
cout << "You can do exercise.";
else
cout << "Haha,\\QAQ/~.";
return 0;
}
这里空空如也
有帮助,赞一个