当遇到需要定义一个简单的struct(用于排序)时,大家一般喜欢其什么名字? 个人:
struct cpdd{ int d,ch; bool operator< (const cpdd& cp) const { return d<cp.d; } }cp[N];