0_0_31227046_9284.cpp: In function 'bool cmp(node, node)':
0_0_31227046_9284.cpp:8:9: error: 'int node::price' is private
int price;
^
0_0_31227046_9284.cpp:13:14: error: within this context
return a.price<b.price; //按价格由少到多排序
^
0_0_31227046_9284.cpp:8:9: error: 'int node::price' is private
int price;
^
0_0_31227046_9284.cpp:13:22: error: within this context
return a.price<b.price; //按价格由少到多排序
^
0_0_31227046_9284.cpp: In function 'int main()':
0_0_31227046_9284.cpp:6:9: error: 'int node::NO' is private
int NO;
^
0_0_31227046_9284.cpp:27:23: error: within this context
cin>>d[i].NO>>d[i].num>>d[i].price;
^
0_0_31227046_9284.cpp:7:9: error: 'int node::num' is private
int num;
^
0_0_31227046_9284.cpp:27:32: error: within this context
cin>>d[i].NO>>d[i].num>>d[i].price;
^
0_0_31227046_9284.cpp:8:9: error: 'int node::price' is private
int price;
^
0_0_31227046_9284.cpp:27:42: error: within this context
cin>>d[i].NO>>d[i].num>>d[i].price;
^
0_0_31227046_9284.cpp:7:9: error: 'int node::num' is private
int num;
^
0_0_31227046_9284.cpp:38:28: error: within this context
if(m<=d[j].num) // 房间数量够
^
0_0_31227046_9284.cpp:6:9: error: 'int node::NO' is private
int NO;
^
0_0_31227046_9284.cpp:40:32: error: within this context
cout<<d[j].NO<<endl;
^
0_0_31227046_9284.cpp:7:9: error: 'int node::num' is private
int num;
^
0_0_31227046_9284.cpp:41:26: error: within this context
d[j].num-=m; //房间数量减少
^
|