逝好还逝孬??
输入代码,看看自己逝好还逝孬
#include<iostream>
using namespace std;
struct student{
string name;
int grade;
bool operator <(student b) {
return grade<b.grade;
}
bool operator >(student b) {
return grade>b.grade;
}
}x,y;
int main() {
x.grade=99;
y.grade=89;
if(y>x)cout<<"我逝好的!";
else
cout<<"我逝孬的!";
return 0;
}
注:孬的意思:
1.不好;坏。2.骂人胆小,没勇气。
纯属娱乐,请勿当真。。。