我的c语言程序出现下面问题怎么办

来源:百度知道 编辑:UC知道 时间:2024/09/26 20:28:23
---------------Configuration: 统计源程序代码 - Win32 Debug--------------------
Compiling...
统计源程序代码.cpp
F:\vc++安装文件\MyProjects\大奖赛现场统计\统计源程序代码.cpp(51) : error C2660: 'paixu' : function does not take 2 parameters
F:\vc++安装文件\MyProjects\大奖赛现场统计\统计源程序代码.cpp(60) : warning C4244: '=' : conversion from 'double' to 'float', possible loss of data
F:\vc++安装文件\MyProjects\大奖赛现场统计\统计源程序代码.cpp(65) : error C2660: 'paixu' : function does not take 2 parameters
F:\vc++安装文件\MyProjects\大奖赛现场统计\统计源程序代码.cpp(88) : error C2440: '=' : cannot convert from 'struct $S2 *[]' to 'char'
This conversion requires a reinterpret_cast, a C-style cast or function-style cast
F:\vc++安装文件\MyProjects\大奖赛现场统计\统计源程序代码.cpp(91) : error C2039: 'fensu' : is not a member of '__unnamed'
F:\vc++安装文件\MyProjects\大

首先:给你一个建议,C程序尽量不要用中文命名和不要用中文路径,这样或许会带给你不必要的麻烦。你可以用英文缩写,或者用传说中的汉语拼音……
你这样贴出来ERROR信息,别人只能断章取义……
好,我就断章取义一把:

1)F:\vc++安装文件\MyProjects\大奖赛现场统计\统计源程序代码.cpp(51) : error C2660: 'paixu' : function does not take 2 parameters :
你调用函数paixu的时候,调用的参数数量不正确。编译器将这种错误应该定位的比较准……

2)F:\vc++安装文件\MyProjects\大奖赛现场统计\统计源程序代码.cpp(60) : warning C4244: '=' : conversion from 'double' to 'float', possible loss of data :
这是在类型转化时出现的警告,如果你确实需要做类型转换在"="后面加上待转化的类型,进行强制转化。

3)与第一个错误一样。

4)F:\vc++安装文件\MyProjects\大奖赛现场统计\统计源程序代码.cpp(88) : error C2440: '=' : cannot convert from 'struct $S2 *[]' to 'char' 。
类型不可以瞎转换……

4)F:\vc++安装文件\MyProjects\大奖赛现场统计\统计源程序代码.cpp(91) : error C2039: 'fensu' : is not a member of '__unnamed'
F:\vc++安装文件\MyProjects\大奖赛现场统计\统计源程序代码.cpp(84) : see decla