逝好还逝孬??
  • 板块灌水区
  • 楼主zlz2023
  • 当前回复6
  • 已保存回复6
  • 发布时间2023/11/26 09:27
  • 上次更新2023/11/26 09:47:42
查看原帖
逝好还逝孬??
1088261
zlz2023楼主2023/11/26 09:27

逝好还逝孬??

输入代码,看看自己逝好还逝孬

#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.骂人胆小,没勇气。

纯属娱乐,请勿当真。。。

2023/11/26 09:27
加载中...