c++有个地方出错,怎么都改不对.bool check(ship myship[FLEET_SIZE],location mylocation){\x05\x05for(int i=0;i

来源:学生作业帮助网 编辑:作业帮 时间:2024/11/15 18:41:30
c++有个地方出错,怎么都改不对.bool check(ship myship[FLEET_SIZE],location mylocation){\x05\x05for(int i=0;i
xőKA9-..Nn nu.K.𲘱 jf*B%zؕqhf6]: /$=D_-vZ]MT h7YKiZ(c4RH:Ȟks;=K M/95WF,J~_03?zBorQI jp)D޻覎4>(н_*AwJ> I:54+\@{DKtUƷޑ'j15f˷6^.˒ j{RNbN[3j&~4z

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&);
//两者参数列表不一致 即编译器不认为你定义的函数是你申明的那个 (按规矩原本就不是一个函数,是两个重载函数)