c++有个地方出错,怎么都改不对.bool check(ship myship[FLEET_SIZE],location mylocation){\x05\x05for(int i=0;i
来源:学生作业帮助网 编辑:六六作业网 时间:2024/11/23 13:32:57
c++有个地方出错,怎么都改不对.boolcheck(shipmyship[FLEET_SIZE],locationmylocation){\x05\x05for(inti=0;ic++有个地方出错,
c++有个地方出错,怎么都改不对.bool check(ship myship[FLEET_SIZE],location mylocation){\x05\x05for(int i=0;i
c++有个地方出错,怎么都改不对.
bool check(ship myship[FLEET_SIZE],location mylocation){
\x05
\x05for(int i=0;i
c++有个地方出错,怎么都改不对.bool check(ship myship[FLEET_SIZE],location mylocation){\x05\x05for(int i=0;i
bool match(ship &a , location &b){这和声明不对
//你的声明是bool match(ship ,location);
//定义的却是 bool match(ship&,location&);
//两者参数列表不一致 即编译器不认为你定义的函数是你申明的那个 (按规矩原本就不是一个函数,是两个重载函数)