请问有谁可以简化一下
#include<iomanip>#include<iostream>
#include<string>
using namespace std;
class nate
{
public:
void set(int age, string name)
{
aaage = age;
nnname = name;
}
void hh()
{
if (nnname == "nate" || nnname == "万致远" || nnname == "柯向红" || nnname == "kathy")
{
cout << nnname << "最好看" << endl << aaage << "岁";
}
else
{
cout << nnname << "最丑最胖最脑残" << aaage << endl << "岁";
}
}
private:
int aaage = 0;
string nnname = 0;
};
int main()
{
string nname;
int aage;
cin >> nname >> aage;
nate n1;
n1.set(aage, nname);
n1.hh();
while (true)
{
;
}
return 0;
}