【水】关于简单struct码风
  • 板块灌水区
  • 楼主冷月葬T魂
  • 当前回复22
  • 已保存回复22
  • 发布时间2021/3/18 19:53
  • 上次更新2023/11/5 01:55:09
查看原帖
【水】关于简单struct码风
340903
冷月葬T魂楼主2021/3/18 19:53

当遇到需要定义一个简单的struct(用于排序)时,大家一般喜欢其什么名字?
个人:

struct cpdd{
	int d,ch;
	bool operator< (const cpdd& cp) const
	{
		return d<cp.d;
	}
}cp[N];
2021/3/18 19:53
加载中...