void find();void searchmenu();  void managemenu();  void readOut();void creatfile();void readcustomer();  int comptime();error C2660: 'readcustomer' : function does not take 1 parameterserror C2664: 'readOut' : cannot convert parameter 1 from 'struct Flight [20]' to 'struct node
                    
                    
                1 回答
 
                    
                    
                            catspeake
                            
                                
                            
                        
                        
                                                
                    TA贡献1111条经验 获得超0个赞
error C2660: 'readcustomer' : function does not take 1 parameters
意思是:函数 readcustomer 不是携带1个输入参数
这个是调用readcustomer时的参数数量与函数定义不匹配。
解决办法,修改调用函数调用语句或是函数定义。
error C2664: 'readOut' : cannot convert parameter 1 from 'struct Flight [20]' to 'struct node
意思是:函数readOut在被调用时,不能把输入参数1从结构体 Flight [20]类型转变成结构体 node类型,
这个是参数传递的类型错误,传入的结构体与函数定义中使用的结构体不一致导致。
解决办法,调整传入的结构体参数的结构或是修改函数定义中使用的结构体结构。如果一定要这样用,可以考虑用指针传递进行强制转型,不过要注意传入参数与函数中使用参数的逻辑对应。
- 1 回答
- 0 关注
- 168 浏览
添加回答
举报
0/150
	提交
		取消
	