0_0_16716447_8443.cpp: In function 'int cmp(const void*, const void*)':
0_0_16716447_8443.cpp:19:7: error: request for member 'sum' in 'x', which is of pointer type 'STU* {aka student*}' (maybe you meant to use '->' ?)
if(x.sum==y.sum)
^
0_0_16716447_8443.cpp:19:14: error: request for member 'sum' in 'y', which is of pointer type 'STU* {aka student*}' (maybe you meant to use '->' ?)
if(x.sum==y.sum)
^
0_0_16716447_8443.cpp:21:12: error: request for member 'string' in 'x', which is of pointer type 'STU* {aka student*}' (maybe you meant to use '->' ?)
return x.string-y.string;//考号升序
^
0_0_16716447_8443.cpp:21:21: error: request for member 'string' in 'y', which is of pointer type 'STU* {aka student*}' (maybe you meant to use '->' ?)
return x.string-y.string;//考号升序
^
0_0_16716447_8443.cpp:24:12: error: request for member 'sum' in 'y', which is of pointer type 'STU* {aka student*}' (maybe you meant to use '->' ?)
return y.sum-x.sum;//成绩降序
^
0_0_16716447_8443.cpp:24:18: error: request for member 'sum' in 'x', which is of pointer type 'STU* {aka student*}' (maybe you meant to use '->' ?)
return y.sum-x.sum;//成绩降序
^
|