编程,函数传递错误

来源:百度知道 编辑:UC知道 时间:2024/05/30 05:53:17
d:\12.cpp(77) : error C2664: 'badstudent' : cannot convert parameter 2 from 'float *' to 'float [][5]'
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast 什么意思啊

函数要求传个float [][5]型的变量,你传的是个float *变量,当然有错.要传float *[5]型的

要求传递的是指针???好像你传的当额参数不对:

'float *' to 'float [][5]' 改改参数类型就出来了~