| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 3526 人关注过本帖
标题:为什么c语言会出现这样的错误呢?还运行不出来!!!
只看楼主 加入收藏
lixuge
Rank: 1
等 级:新手上路
帖 子:20
专家分:0
注 册:2012-11-13
收藏
得分:0 
回复 10楼 lwb603569640
注释什么的,我给删了,我发给你个原版,你帮我看看吧
2012-11-21 15:33
lixuge
Rank: 1
等 级:新手上路
帖 子:20
专家分:0
注 册:2012-11-13
收藏
得分:0 
回复 3楼 一个孩子
大侠,代码已经贴出来了。
2012-11-21 15:35
lwb603569640
Rank: 6Rank: 6
等 级:侠之大者
威 望:2
帖 子:283
专家分:436
注 册:2012-11-9
收藏
得分:0 
D:\Microsoft Visual Studio 9.0\VC>cl c.cpp
用于 80x86 的 Microsoft (R) 32 位 C/C++ 优化编译器 15.00.30729.01 版
版权所有(C) Microsoft Corporation。保留所有权利。

c.cpp
D:\Microsoft Visual Studio 9.0\VC\INCLUDE\xlocale(342) : warning C4530: 使用了 C
++ 异常处理程序,但未启用展开语义。请指定 /EHsc
c.cpp(31) : error C2668: “pow”: 对重载函数的调用不明确
        D:\Microsoft Visual Studio 9.0\VC\INCLUDE\math.h(575): 可能是“long doub
le pow(long double,int)”
        D:\Microsoft Visual Studio 9.0\VC\INCLUDE\math.h(527): 或       “float
pow(float,int)”
        D:\Microsoft Visual Studio 9.0\VC\INCLUDE\math.h(489): 或       “double
 pow(double,int)”
        试图匹配参数列表“(int, int)”时
c.cpp(31) : error C2668: “pow”: 对重载函数的调用不明确
        D:\Microsoft Visual Studio 9.0\VC\INCLUDE\math.h(575): 可能是“long doub
le pow(long double,int)”
        D:\Microsoft Visual Studio 9.0\VC\INCLUDE\math.h(527): 或       “float
pow(float,int)”
        D:\Microsoft Visual Studio 9.0\VC\INCLUDE\math.h(489): 或       “double
 pow(double,int)”
        试图匹配参数列表“(int, int)”时
c.cpp(31) : error C2668: “pow”: 对重载函数的调用不明确
        D:\Microsoft Visual Studio 9.0\VC\INCLUDE\math.h(575): 可能是“long doub
le pow(long double,int)”
        D:\Microsoft Visual Studio 9.0\VC\INCLUDE\math.h(527): 或       “float
pow(float,int)”
        D:\Microsoft Visual Studio 9.0\VC\INCLUDE\math.h(489): 或       “double
 pow(double,int)”
        试图匹配参数列表“(int, int)”时
c.cpp(32) : error C2668: “pow”: 对重载函数的调用不明确
        D:\Microsoft Visual Studio 9.0\VC\INCLUDE\math.h(575): 可能是“long doub
le pow(long double,int)”
        D:\Microsoft Visual Studio 9.0\VC\INCLUDE\math.h(527): 或       “float
pow(float,int)”
        D:\Microsoft Visual Studio 9.0\VC\INCLUDE\math.h(489): 或       “double
 pow(double,int)”
        试图匹配参数列表“(int, int)”时
c.cpp(32) : error C2668: “pow”: 对重载函数的调用不明确
        D:\Microsoft Visual Studio 9.0\VC\INCLUDE\math.h(575): 可能是“long doub
le pow(long double,int)”
        D:\Microsoft Visual Studio 9.0\VC\INCLUDE\math.h(527): 或       “float
pow(float,int)”
        D:\Microsoft Visual Studio 9.0\VC\INCLUDE\math.h(489): 或       “double
 pow(double,int)”
        试图匹配参数列表“(int, int)”时
c.cpp(32) : error C2668: “pow”: 对重载函数的调用不明确
        D:\Microsoft Visual Studio 9.0\VC\INCLUDE\math.h(575): 可能是“long doub
le pow(long double,int)”
        D:\Microsoft Visual Studio 9.0\VC\INCLUDE\math.h(527): 或       “float
pow(float,int)”
        D:\Microsoft Visual Studio 9.0\VC\INCLUDE\math.h(489): 或       “double
 pow(double,int)”
        试图匹配参数列表“(int, int)”时
c.cpp(32) : error C2668: “pow”: 对重载函数的调用不明确
        D:\Microsoft Visual Studio 9.0\VC\INCLUDE\math.h(575): 可能是“long doub
le pow(long double,int)”
        D:\Microsoft Visual Studio 9.0\VC\INCLUDE\math.h(527): 或       “float
pow(float,int)”
        D:\Microsoft Visual Studio 9.0\VC\INCLUDE\math.h(489): 或       “double
 pow(double,int)”
        试图匹配参数列表“(int, int)”时
c.cpp(33) : error C2668: “pow”: 对重载函数的调用不明确
        D:\Microsoft Visual Studio 9.0\VC\INCLUDE\math.h(575): 可能是“long doub
le pow(long double,int)”
        D:\Microsoft Visual Studio 9.0\VC\INCLUDE\math.h(527): 或       “float
pow(float,int)”
        D:\Microsoft Visual Studio 9.0\VC\INCLUDE\math.h(489): 或       “double
 pow(double,int)”
        试图匹配参数列表“(int, int)”时
c.cpp(33) : error C2668: “pow”: 对重载函数的调用不明确
        D:\Microsoft Visual Studio 9.0\VC\INCLUDE\math.h(575): 可能是“long doub
le pow(long double,int)”
        D:\Microsoft Visual Studio 9.0\VC\INCLUDE\math.h(527): 或       “float
pow(float,int)”
        D:\Microsoft Visual Studio 9.0\VC\INCLUDE\math.h(489): 或       “double
 pow(double,int)”
        试图匹配参数列表“(int, int)”时
c.cpp(42) : error C2668: “pow”: 对重载函数的调用不明确
        D:\Microsoft Visual Studio 9.0\VC\INCLUDE\math.h(575): 可能是“long doub
le pow(long double,int)”
        D:\Microsoft Visual Studio 9.0\VC\INCLUDE\math.h(527): 或       “float
pow(float,int)”
        D:\Microsoft Visual Studio 9.0\VC\INCLUDE\math.h(489): 或       “double
 pow(double,int)”
        试图匹配参数列表“(int, int)”时
c.cpp(51) : error C2668: “pow”: 对重载函数的调用不明确
        D:\Microsoft Visual Studio 9.0\VC\INCLUDE\math.h(575): 可能是“long doub
le pow(long double,int)”
        D:\Microsoft Visual Studio 9.0\VC\INCLUDE\math.h(527): 或       “float
pow(float,int)”
        D:\Microsoft Visual Studio 9.0\VC\INCLUDE\math.h(489): 或       “double
 pow(double,int)”
        试图匹配参数列表“(int, int)”时
c.cpp(51) : error C2668: “pow”: 对重载函数的调用不明确
        D:\Microsoft Visual Studio 9.0\VC\INCLUDE\math.h(575): 可能是“long doub
le pow(long double,int)”
        D:\Microsoft Visual Studio 9.0\VC\INCLUDE\math.h(527): 或       “float
pow(float,int)”
        D:\Microsoft Visual Studio 9.0\VC\INCLUDE\math.h(489): 或       “double
 pow(double,int)”
        试图匹配参数列表“(int, int)”时
c.cpp(70) : error C2666: “pow”: 6 个重载有相似的转换
        D:\Microsoft Visual Studio 9.0\VC\INCLUDE\math.h(575): 可能是“long doub
le pow(long double,int)”
        D:\Microsoft Visual Studio 9.0\VC\INCLUDE\math.h(573): 或       “long d
ouble pow(long double,long double)”
        D:\Microsoft Visual Studio 9.0\VC\INCLUDE\math.h(527): 或       “float
pow(float,int)”
        D:\Microsoft Visual Studio 9.0\VC\INCLUDE\math.h(525): 或       “float
pow(float,float)”
        D:\Microsoft Visual Studio 9.0\VC\INCLUDE\math.h(489): 或       “double
 pow(double,int)”
        D:\Microsoft Visual Studio 9.0\VC\INCLUDE\math.h(123): 或       “double
 pow(double,double)”
        试图匹配参数列表“(float, double)”时
c.cpp(71) : error C2666: “pow”: 6 个重载有相似的转换
        D:\Microsoft Visual Studio 9.0\VC\INCLUDE\math.h(575): 可能是“long doub
le pow(long double,int)”
        D:\Microsoft Visual Studio 9.0\VC\INCLUDE\math.h(573): 或       “long d
ouble pow(long double,long double)”
        D:\Microsoft Visual Studio 9.0\VC\INCLUDE\math.h(527): 或       “float
pow(float,int)”
        D:\Microsoft Visual Studio 9.0\VC\INCLUDE\math.h(525): 或       “float
pow(float,float)”
        D:\Microsoft Visual Studio 9.0\VC\INCLUDE\math.h(489): 或       “double
 pow(double,int)”
        D:\Microsoft Visual Studio 9.0\VC\INCLUDE\math.h(123): 或       “double
 pow(double,double)”
        试图匹配参数列表“(double, float)”时
c.cpp(81) : error C2668: “pow”: 对重载函数的调用不明确
        D:\Microsoft Visual Studio 9.0\VC\INCLUDE\math.h(575): 可能是“long doub
le pow(long double,int)”
        D:\Microsoft Visual Studio 9.0\VC\INCLUDE\math.h(527): 或       “float
pow(float,int)”
        D:\Microsoft Visual Studio 9.0\VC\INCLUDE\math.h(489): 或       “double
 pow(double,int)”
        试图匹配参数列表“(int, int)”时
c.cpp(81) : error C2668: “pow”: 对重载函数的调用不明确
        D:\Microsoft Visual Studio 9.0\VC\INCLUDE\math.h(575): 可能是“long doub
le pow(long double,int)”
        D:\Microsoft Visual Studio 9.0\VC\INCLUDE\math.h(527): 或       “float
pow(float,int)”
        D:\Microsoft Visual Studio 9.0\VC\INCLUDE\math.h(489): 或       “double
 pow(double,int)”
        试图匹配参数列表“(int, int)”时
c.cpp(81) : error C2668: “pow”: 对重载函数的调用不明确
        D:\Microsoft Visual Studio 9.0\VC\INCLUDE\math.h(575): 可能是“long doub
le pow(long double,int)”
        D:\Microsoft Visual Studio 9.0\VC\INCLUDE\math.h(527): 或       “float
pow(float,int)”
        D:\Microsoft Visual Studio 9.0\VC\INCLUDE\math.h(489): 或       “double
 pow(double,int)”
        试图匹配参数列表“(int, int)”时
c.cpp(89) : error C2668: “pow”: 对重载函数的调用不明确
        D:\Microsoft Visual Studio 9.0\VC\INCLUDE\math.h(575): 可能是“long doub
le pow(long double,int)”
        D:\Microsoft Visual Studio 9.0\VC\INCLUDE\math.h(527): 或       “float
pow(float,int)”
        D:\Microsoft Visual Studio 9.0\VC\INCLUDE\math.h(489): 或       “double
 pow(double,int)”
        试图匹配参数列表“(int, int)”时
c.cpp(96) : error C2668: “pow”: 对重载函数的调用不明确
        D:\Microsoft Visual Studio 9.0\VC\INCLUDE\math.h(575): 可能是“long doub
le pow(long double,int)”
        D:\Microsoft Visual Studio 9.0\VC\INCLUDE\math.h(527): 或       “float
pow(float,int)”
        D:\Microsoft Visual Studio 9.0\VC\INCLUDE\math.h(489): 或       “double
 pow(double,int)”
        试图匹配参数列表“(int, int)”时
c.cpp(98) : error C2668: “pow”: 对重载函数的调用不明确
        D:\Microsoft Visual Studio 9.0\VC\INCLUDE\math.h(575): 可能是“long doub
le pow(long double,int)”
        D:\Microsoft Visual Studio 9.0\VC\INCLUDE\math.h(527): 或       “float
pow(float,int)”
        D:\Microsoft Visual Studio 9.0\VC\INCLUDE\math.h(489): 或       “double
 pow(double,int)”
        试图匹配参数列表“(int, int)”时
c.cpp(111) : error C2668: “pow”: 对重载函数的调用不明确
        D:\Microsoft Visual Studio 9.0\VC\INCLUDE\math.h(575): 可能是“long doub
le pow(long double,int)”
        D:\Microsoft Visual Studio 9.0\VC\INCLUDE\math.h(527): 或       “float
pow(float,int)”
        D:\Microsoft Visual Studio 9.0\VC\INCLUDE\math.h(489): 或       “double
 pow(double,int)”
        试图匹配参数列表“(int, int)”时
c.cpp(121) : error C2668: “pow”: 对重载函数的调用不明确
        D:\Microsoft Visual Studio 9.0\VC\INCLUDE\math.h(575): 可能是“long doub
le pow(long double,int)”
        D:\Microsoft Visual Studio 9.0\VC\INCLUDE\math.h(527): 或       “float
pow(float,int)”
        D:\Microsoft Visual Studio 9.0\VC\INCLUDE\math.h(489): 或       “double
 pow(double,int)”
        试图匹配参数列表“(int, int)”时
c.cpp(122) : error C2668: “pow”: 对重载函数的调用不明确
        D:\Microsoft Visual Studio 9.0\VC\INCLUDE\math.h(575): 可能是“long doub
le pow(long double,int)”
        D:\Microsoft Visual Studio 9.0\VC\INCLUDE\math.h(527): 或       “float
pow(float,int)”
        D:\Microsoft Visual Studio 9.0\VC\INCLUDE\math.h(489): 或       “double
 pow(double,int)”
        试图匹配参数列表“(int, int)”时
c.cpp(122) : error C2668: “pow”: 对重载函数的调用不明确
        D:\Microsoft Visual Studio 9.0\VC\INCLUDE\math.h(575): 可能是“long doub
le pow(long double,int)”
        D:\Microsoft Visual Studio 9.0\VC\INCLUDE\math.h(527): 或       “float
pow(float,int)”
        D:\Microsoft Visual Studio 9.0\VC\INCLUDE\math.h(489): 或       “double
 pow(double,int)”
        试图匹配参数列表“(int, int)”时
c.cpp(122) : error C2668: “pow”: 对重载函数的调用不明确
        D:\Microsoft Visual Studio 9.0\VC\INCLUDE\math.h(575): 可能是“long doub
le pow(long double,int)”
        D:\Microsoft Visual Studio 9.0\VC\INCLUDE\math.h(527): 或       “float
pow(float,int)”
        D:\Microsoft Visual Studio 9.0\VC\INCLUDE\math.h(489): 或       “double
 pow(double,int)”
        试图匹配参数列表“(int, int)”时
c.cpp(122) : error C2668: “pow”: 对重载函数的调用不明确
        D:\Microsoft Visual Studio 9.0\VC\INCLUDE\math.h(575): 可能是“long doub
le pow(long double,int)”
        D:\Microsoft Visual Studio 9.0\VC\INCLUDE\math.h(527): 或       “float
pow(float,int)”
        D:\Microsoft Visual Studio 9.0\VC\INCLUDE\math.h(489): 或       “double
 pow(double,int)”
        试图匹配参数列表“(int, int)”时
c.cpp(123) : error C2668: “pow”: 对重载函数的调用不明确
        D:\Microsoft Visual Studio 9.0\VC\INCLUDE\math.h(575): 可能是“long doub
le pow(long double,int)”
        D:\Microsoft Visual Studio 9.0\VC\INCLUDE\math.h(527): 或       “float
pow(float,int)”
        D:\Microsoft Visual Studio 9.0\VC\INCLUDE\math.h(489): 或       “double
 pow(double,int)”
        试图匹配参数列表“(int, int)”时
c.cpp(123) : error C2668: “pow”: 对重载函数的调用不明确
        D:\Microsoft Visual Studio 9.0\VC\INCLUDE\math.h(575): 可能是“long doub
le pow(long double,int)”
        D:\Microsoft Visual Studio 9.0\VC\INCLUDE\math.h(527): 或       “float
pow(float,int)”
        D:\Microsoft Visual Studio 9.0\VC\INCLUDE\math.h(489): 或       “double
 pow(double,int)”
        试图匹配参数列表“(int, int)”时
c.cpp(148) : error C2668: “pow”: 对重载函数的调用不明确
        D:\Microsoft Visual Studio 9.0\VC\INCLUDE\math.h(575): 可能是“long doub
le pow(long double,int)”
        D:\Microsoft Visual Studio 9.0\VC\INCLUDE\math.h(527): 或       “float
pow(float,int)”
        D:\Microsoft Visual Studio 9.0\VC\INCLUDE\math.h(489): 或       “double
 pow(double,int)”
        试图匹配参数列表“(int, int)”时
c.cpp(148) : error C2668: “pow”: 对重载函数的调用不明确
        D:\Microsoft Visual Studio 9.0\VC\INCLUDE\math.h(575): 可能是“long doub
le pow(long double,int)”
        D:\Microsoft Visual Studio 9.0\VC\INCLUDE\math.h(527): 或       “float
pow(float,int)”
        D:\Microsoft Visual Studio 9.0\VC\INCLUDE\math.h(489): 或       “double
 pow(double,int)”
        试图匹配参数列表“(int, int)”时
c.cpp(157) : error C2668: “pow”: 对重载函数的调用不明确
        D:\Microsoft Visual Studio 9.0\VC\INCLUDE\math.h(575): 可能是“long doub
le pow(long double,int)”
        D:\Microsoft Visual Studio 9.0\VC\INCLUDE\math.h(527): 或       “float
pow(float,int)”
        D:\Microsoft Visual Studio 9.0\VC\INCLUDE\math.h(489): 或       “double
 pow(double,int)”
        试图匹配参数列表“(int, int)”时
c.cpp(157) : error C2668: “pow”: 对重载函数的调用不明确
        D:\Microsoft Visual Studio 9.0\VC\INCLUDE\math.h(575): 可能是“long doub
le pow(long double,int)”
        D:\Microsoft Visual Studio 9.0\VC\INCLUDE\math.h(527): 或       “float
pow(float,int)”
        D:\Microsoft Visual Studio 9.0\VC\INCLUDE\math.h(489): 或       “double
 pow(double,int)”
        试图匹配参数列表“(int, int)”时
c.cpp(157) : error C2668: “pow”: 对重载函数的调用不明确
        D:\Microsoft Visual Studio 9.0\VC\INCLUDE\math.h(575): 可能是“long doub
le pow(long double,int)”
        D:\Microsoft Visual Studio 9.0\VC\INCLUDE\math.h(527): 或       “float
pow(float,int)”
        D:\Microsoft Visual Studio 9.0\VC\INCLUDE\math.h(489): 或       “double
 pow(double,int)”
        试图匹配参数列表“(int, int)”时
c.cpp(157) : error C2668: “pow”: 对重载函数的调用不明确
        D:\Microsoft Visual Studio 9.0\VC\INCLUDE\math.h(575): 可能是“long doub
le pow(long double,int)”
        D:\Microsoft Visual Studio 9.0\VC\INCLUDE\math.h(527): 或       “float
pow(float,int)”
        D:\Microsoft Visual Studio 9.0\VC\INCLUDE\math.h(489): 或       “double
 pow(double,int)”
        试图匹配参数列表“(int, int)”时
c.cpp(166) : error C2668: “pow”: 对重载函数的调用不明确
        D:\Microsoft Visual Studio 9.0\VC\INCLUDE\math.h(575): 可能是“long doub
le pow(long double,int)”
        D:\Microsoft Visual Studio 9.0\VC\INCLUDE\math.h(527): 或       “float
pow(float,int)”
        D:\Microsoft Visual Studio 9.0\VC\INCLUDE\math.h(489): 或       “double
 pow(double,int)”
        试图匹配参数列表“(int, int)”时
c.cpp(166) : error C2668: “pow”: 对重载函数的调用不明确
        D:\Microsoft Visual Studio 9.0\VC\INCLUDE\math.h(575): 可能是“long doub
le pow(long double,int)”
        D:\Microsoft Visual Studio 9.0\VC\INCLUDE\math.h(527): 或       “float
pow(float,int)”
        D:\Microsoft Visual Studio 9.0\VC\INCLUDE\math.h(489): 或       “double
 pow(double,int)”
        试图匹配参数列表“(int, int)”时
c.cpp(198) : error C2668: “pow”: 对重载函数的调用不明确
        D:\Microsoft Visual Studio 9.0\VC\INCLUDE\math.h(575): 可能是“long doub
le pow(long double,int)”
        D:\Microsoft Visual Studio 9.0\VC\INCLUDE\math.h(527): 或       “float
pow(float,int)”
        D:\Microsoft Visual Studio 9.0\VC\INCLUDE\math.h(489): 或       “double
 pow(double,int)”
        试图匹配参数列表“(int, int)”时
c.cpp(198) : error C2668: “pow”: 对重载函数的调用不明确
        D:\Microsoft Visual Studio 9.0\VC\INCLUDE\math.h(575): 可能是“long doub
le pow(long double,int)”
        D:\Microsoft Visual Studio 9.0\VC\INCLUDE\math.h(527): 或       “float
pow(float,int)”
        D:\Microsoft Visual Studio 9.0\VC\INCLUDE\math.h(489): 或       “double
 pow(double,int)”
        试图匹配参数列表“(int, int)”时
c.cpp(198) : error C2668: “pow”: 对重载函数的调用不明确
        D:\Microsoft Visual Studio 9.0\VC\INCLUDE\math.h(575): 可能是“long doub
le pow(long double,int)”
        D:\Microsoft Visual Studio 9.0\VC\INCLUDE\math.h(527): 或       “float
pow(float,int)”
        D:\Microsoft Visual Studio 9.0\VC\INCLUDE\math.h(489): 或       “double
 pow(double,int)”
        试图匹配参数列表“(int, int)”时
c.cpp(199) : error C2668: “pow”: 对重载函数的调用不明确
        D:\Microsoft Visual Studio 9.0\VC\INCLUDE\math.h(575): 可能是“long doub
le pow(long double,int)”
        D:\Microsoft Visual Studio 9.0\VC\INCLUDE\math.h(527): 或       “float
pow(float,int)”
        D:\Microsoft Visual Studio 9.0\VC\INCLUDE\math.h(489): 或       “double
 pow(double,int)”
        试图匹配参数列表“(int, int)”时
c.cpp(199) : error C2668: “pow”: 对重载函数的调用不明确
        D:\Microsoft Visual Studio 9.0\VC\INCLUDE\math.h(575): 可能是“long doub
le pow(long double,int)”
        D:\Microsoft Visual Studio 9.0\VC\INCLUDE\math.h(527): 或       “float
pow(float,int)”
        D:\Microsoft Visual Studio 9.0\VC\INCLUDE\math.h(489): 或       “double
 pow(double,int)”
        试图匹配参数列表“(int, int)”时
c.cpp(217) : error C2668: “pow”: 对重载函数的调用不明确
        D:\Microsoft Visual Studio 9.0\VC\INCLUDE\math.h(575): 可能是“long doub
le pow(long double,int)”
        D:\Microsoft Visual Studio 9.0\VC\INCLUDE\math.h(527): 或       “float
pow(float,int)”
        D:\Microsoft Visual Studio 9.0\VC\INCLUDE\math.h(489): 或       “double
 pow(double,int)”
        试图匹配参数列表“(int, int)”时
c.cpp(228) : error C2668: “pow”: 对重载函数的调用不明确
        D:\Microsoft Visual Studio 9.0\VC\INCLUDE\math.h(575): 可能是“long doub
le pow(long double,int)”
        D:\Microsoft Visual Studio 9.0\VC\INCLUDE\math.h(527): 或       “float
pow(float,int)”
        D:\Microsoft Visual Studio 9.0\VC\INCLUDE\math.h(489): 或       “double
 pow(double,int)”
        试图匹配参数列表“(int, int)”时
c.cpp(230) : error C2668: “pow”: 对重载函数的调用不明确
        D:\Microsoft Visual Studio 9.0\VC\INCLUDE\math.h(575): 可能是“long doub
le pow(long double,int)”
        D:\Microsoft Visual Studio 9.0\VC\INCLUDE\math.h(527): 或       “float
pow(float,int)”
        D:\Microsoft Visual Studio 9.0\VC\INCLUDE\math.h(489): 或       “double
 pow(double,int)”
        试图匹配参数列表“(int, int)”时
c.cpp(231) : error C2668: “pow”: 对重载函数的调用不明确
        D:\Microsoft Visual Studio 9.0\VC\INCLUDE\math.h(575): 可能是“long doub
le pow(long double,int)”
        D:\Microsoft Visual Studio 9.0\VC\INCLUDE\math.h(527): 或       “float
pow(float,int)”
        D:\Microsoft Visual Studio 9.0\VC\INCLUDE\math.h(489): 或       “double
 pow(double,int)”
        试图匹配参数列表“(int, int)”时
c.cpp(232) : error C2668: “pow”: 对重载函数的调用不明确
        D:\Microsoft Visual Studio 9.0\VC\INCLUDE\math.h(575): 可能是“long doub
le pow(long double,int)”
        D:\Microsoft Visual Studio 9.0\VC\INCLUDE\math.h(527): 或       “float
pow(float,int)”
        D:\Microsoft Visual Studio 9.0\VC\INCLUDE\math.h(489): 或       “double
 pow(double,int)”
        试图匹配参数列表“(int, int)”时
c.cpp(233) : error C2668: “pow”: 对重载函数的调用不明确
        D:\Microsoft Visual Studio 9.0\VC\INCLUDE\math.h(575): 可能是“long doub
le pow(long double,int)”
        D:\Microsoft Visual Studio 9.0\VC\INCLUDE\math.h(527): 或       “float
pow(float,int)”
        D:\Microsoft Visual Studio 9.0\VC\INCLUDE\math.h(489): 或       “double
 pow(double,int)”
        试图匹配参数列表“(int, int)”时
c.cpp(234) : error C2666: “pow”: 6 个重载有相似的转换
        D:\Microsoft Visual Studio 9.0\VC\INCLUDE\math.h(575): 可能是“long doub
le pow(long double,int)”
        D:\Microsoft Visual Studio 9.0\VC\INCLUDE\math.h(573): 或       “long d
ouble pow(long double,long double)”
        D:\Microsoft Visual Studio 9.0\VC\INCLUDE\math.h(527): 或       “float
pow(float,int)”
        D:\Microsoft Visual Studio 9.0\VC\INCLUDE\math.h(525): 或       “float
pow(float,float)”
        D:\Microsoft Visual Studio 9.0\VC\INCLUDE\math.h(489): 或       “double
 pow(double,int)”
        D:\Microsoft Visual Studio 9.0\VC\INCLUDE\math.h(123): 或       “double
 pow(double,double)”
        试图匹配参数列表“(float, double)”时
c.cpp(243) : error C2668: “pow”: 对重载函数的调用不明确
        D:\Microsoft Visual Studio 9.0\VC\INCLUDE\math.h(575): 可能是“long doub
le pow(long double,int)”
        D:\Microsoft Visual Studio 9.0\VC\INCLUDE\math.h(527): 或       “float
pow(float,int)”
        D:\Microsoft Visual Studio 9.0\VC\INCLUDE\math.h(489): 或       “double
 pow(double,int)”
        试图匹配参数列表“(int, int)”时
c.cpp(244) : error C2668: “pow”: 对重载函数的调用不明确
        D:\Microsoft Visual Studio 9.0\VC\INCLUDE\math.h(575): 可能是“long doub
le pow(long double,int)”
        D:\Microsoft Visual Studio 9.0\VC\INCLUDE\math.h(527): 或       “float
pow(float,int)”
        D:\Microsoft Visual Studio 9.0\VC\INCLUDE\math.h(489): 或       “double
 pow(double,int)”
        试图匹配参数列表“(int, int)”时
c.cpp(245) : error C2668: “pow”: 对重载函数的调用不明确
        D:\Microsoft Visual Studio 9.0\VC\INCLUDE\math.h(575): 可能是“long doub
le pow(long double,int)”
        D:\Microsoft Visual Studio 9.0\VC\INCLUDE\math.h(527): 或       “float
pow(float,int)”
        D:\Microsoft Visual Studio 9.0\VC\INCLUDE\math.h(489): 或       “double
 pow(double,int)”
        试图匹配参数列表“(int, int)”时
c.cpp(267) : error C2666: “pow”: 6 个重载有相似的转换
        D:\Microsoft Visual Studio 9.0\VC\INCLUDE\math.h(575): 可能是“long doub
le pow(long double,int)”
        D:\Microsoft Visual Studio 9.0\VC\INCLUDE\math.h(573): 或       “long d
ouble pow(long double,long double)”
        D:\Microsoft Visual Studio 9.0\VC\INCLUDE\math.h(527): 或       “float
pow(float,int)”
        D:\Microsoft Visual Studio 9.0\VC\INCLUDE\math.h(525): 或       “float
pow(float,float)”
        D:\Microsoft Visual Studio 9.0\VC\INCLUDE\math.h(489): 或       “double
 pow(double,int)”
        D:\Microsoft Visual Studio 9.0\VC\INCLUDE\math.h(123): 或       “double
 pow(double,double)”
        试图匹配参数列表“(float, double)”时
c.cpp(267) : error C2666: “pow”: 6 个重载有相似的转换
        D:\Microsoft Visual Studio 9.0\VC\INCLUDE\math.h(575): 可能是“long doub
le pow(long double,int)”
        D:\Microsoft Visual Studio 9.0\VC\INCLUDE\math.h(573): 或       “long d
ouble pow(long double,long double)”
        D:\Microsoft Visual Studio 9.0\VC\INCLUDE\math.h(527): 或       “float
pow(float,int)”
        D:\Microsoft Visual Studio 9.0\VC\INCLUDE\math.h(525): 或       “float
pow(float,float)”
        D:\Microsoft Visual Studio 9.0\VC\INCLUDE\math.h(489): 或       “double
 pow(double,int)”
        D:\Microsoft Visual Studio 9.0\VC\INCLUDE\math.h(123): 或       “double
 pow(double,double)”
        试图匹配参数列表“(float, double)”时
c.cpp(267) : error C2666: “pow”: 6 个重载有相似的转换
        D:\Microsoft Visual Studio 9.0\VC\INCLUDE\math.h(575): 可能是“long doub
le pow(long double,int)”
        D:\Microsoft Visual Studio 9.0\VC\INCLUDE\math.h(573): 或       “long d
ouble pow(long double,long double)”
        D:\Microsoft Visual Studio 9.0\VC\INCLUDE\math.h(527): 或       “float
pow(float,int)”
        D:\Microsoft Visual Studio 9.0\VC\INCLUDE\math.h(525): 或       “float
pow(float,float)”
        D:\Microsoft Visual Studio 9.0\VC\INCLUDE\math.h(489): 或       “double
 pow(double,int)”
        D:\Microsoft Visual Studio 9.0\VC\INCLUDE\math.h(123): 或       “double
 pow(double,double)”
        试图匹配参数列表“(float, double)”时
c.cpp(267) : error C2666: “pow”: 6 个重载有相似的转换
        D:\Microsoft Visual Studio 9.0\VC\INCLUDE\math.h(575): 可能是“long doub
le pow(long double,int)”
        D:\Microsoft Visual Studio 9.0\VC\INCLUDE\math.h(573): 或       “long d
ouble pow(long double,long double)”
        D:\Microsoft Visual Studio 9.0\VC\INCLUDE\math.h(527): 或       “float
pow(float,int)”
        D:\Microsoft Visual Studio 9.0\VC\INCLUDE\math.h(525): 或       “float
pow(float,float)”
        D:\Microsoft Visual Studio 9.0\VC\INCLUDE\math.h(489): 或       “double
 pow(double,int)”
        D:\Microsoft Visual Studio 9.0\VC\INCLUDE\math.h(123): 或       “double
 pow(double,double)”
        试图匹配参数列表“(float, double)”时
c.cpp(267) : error C2666: “pow”: 6 个重载有相似的转换
        D:\Microsoft Visual Studio 9.0\VC\INCLUDE\math.h(575): 可能是“long doub
le pow(long double,int)”
        D:\Microsoft Visual Studio 9.0\VC\INCLUDE\math.h(573): 或       “long d
ouble pow(long double,long double)”
        D:\Microsoft Visual Studio 9.0\VC\INCLUDE\math.h(527): 或       “float
pow(float,int)”
        D:\Microsoft Visual Studio 9.0\VC\INCLUDE\math.h(525): 或       “float
pow(float,float)”
        D:\Microsoft Visual Studio 9.0\VC\INCLUDE\math.h(489): 或       “double
 pow(double,int)”
        D:\Microsoft Visual Studio 9.0\VC\INCLUDE\math.h(123): 或       “double
 pow(double,double)”
        试图匹配参数列表“(float, double)”时
c.cpp(334) : error C2666: “pow”: 6 个重载有相似的转换
        D:\Microsoft Visual Studio 9.0\VC\INCLUDE\math.h(575): 可能是“long doub
le pow(long double,int)”
        D:\Microsoft Visual Studio 9.0\VC\INCLUDE\math.h(573): 或       “long d
ouble pow(long double,long double)”
        D:\Microsoft Visual Studio 9.0\VC\INCLUDE\math.h(527): 或       “float
pow(float,int)”
        D:\Microsoft Visual Studio 9.0\VC\INCLUDE\math.h(525): 或       “float
pow(float,float)”
        D:\Microsoft Visual Studio 9.0\VC\INCLUDE\math.h(489): 或       “double
 pow(double,int)”
        D:\Microsoft Visual Studio 9.0\VC\INCLUDE\math.h(123): 或       “double
 pow(double,double)”
        试图匹配参数列表“(float, double)”时
c.cpp(334) : error C2666: “pow”: 6 个重载有相似的转换
        D:\Microsoft Visual Studio 9.0\VC\INCLUDE\math.h(575): 可能是“long doub
le pow(long double,int)”
        D:\Microsoft Visual Studio 9.0\VC\INCLUDE\math.h(573): 或       “long d
ouble pow(long double,long double)”
        D:\Microsoft Visual Studio 9.0\VC\INCLUDE\math.h(527): 或       “float
pow(float,int)”
        D:\Microsoft Visual Studio 9.0\VC\INCLUDE\math.h(525): 或       “float
pow(float,float)”
        D:\Microsoft Visual Studio 9.0\VC\INCLUDE\math.h(489): 或       “double
 pow(double,int)”
        D:\Microsoft Visual Studio 9.0\VC\INCLUDE\math.h(123): 或       “double
 pow(double,double)”
        试图匹配参数列表“(float, double)”时
c.cpp(349) : error C2666: “pow”: 6 个重载有相似的转换
        D:\Microsoft Visual Studio 9.0\VC\INCLUDE\math.h(575): 可能是“long doub
le pow(long double,int)”
        D:\Microsoft Visual Studio 9.0\VC\INCLUDE\math.h(573): 或       “long d
ouble pow(long double,long double)”
        D:\Microsoft Visual Studio 9.0\VC\INCLUDE\math.h(527): 或       “float
pow(float,int)”
        D:\Microsoft Visual Studio 9.0\VC\INCLUDE\math.h(525): 或       “float
pow(float,float)”
        D:\Microsoft Visual Studio 9.0\VC\INCLUDE\math.h(489): 或       “double
 pow(double,int)”
        D:\Microsoft Visual Studio 9.0\VC\INCLUDE\math.h(123): 或       “double
 pow(double,double)”
        试图匹配参数列表“(float, double)”时
c.cpp(349) : error C2666: “pow”: 6 个重载有相似的转换
        D:\Microsoft Visual Studio 9.0\VC\INCLUDE\math.h(575): 可能是“long doub
le pow(long double,int)”
        D:\Microsoft Visual Studio 9.0\VC\INCLUDE\math.h(573): 或       “long d
ouble pow(long double,long double)”
        D:\Microsoft Visual Studio 9.0\VC\INCLUDE\math.h(527): 或       “float
pow(float,int)”
        D:\Microsoft Visual Studio 9.0\VC\INCLUDE\math.h(525): 或       “float
pow(float,float)”
        D:\Microsoft Visual Studio 9.0\VC\INCLUDE\math.h(489): 或       “double
 pow(double,int)”
        D:\Microsoft Visual Studio 9.0\VC\INCLUDE\math.h(123): 或       “double
 pow(double,double)”
        试图匹配参数列表“(float, double)”时
c.cpp(365) : error C2666: “pow”: 6 个重载有相似的转换
        D:\Microsoft Visual Studio 9.0\VC\INCLUDE\math.h(575): 可能是“long doub
le pow(long double,int)”
        D:\Microsoft Visual Studio 9.0\VC\INCLUDE\math.h(573): 或       “long d
ouble pow(long double,long double)”
        D:\Microsoft Visual Studio 9.0\VC\INCLUDE\math.h(527): 或       “float
pow(float,int)”
        D:\Microsoft Visual Studio 9.0\VC\INCLUDE\math.h(525): 或       “float
pow(float,float)”
        D:\Microsoft Visual Studio 9.0\VC\INCLUDE\math.h(489): 或       “double
 pow(double,int)”
        D:\Microsoft Visual Studio 9.0\VC\INCLUDE\math.h(123): 或       “double
 pow(double,double)”
        试图匹配参数列表“(float, double)”时
c.cpp(365) : error C2666: “pow”: 6 个重载有相似的转换
        D:\Microsoft Visual Studio 9.0\VC\INCLUDE\math.h(575): 可能是“long doub
le pow(long double,int)”
        D:\Microsoft Visual Studio 9.0\VC\INCLUDE\math.h(573): 或       “long d
ouble pow(long double,long double)”
        D:\Microsoft Visual Studio 9.0\VC\INCLUDE\math.h(527): 或       “float
pow(float,int)”
        D:\Microsoft Visual Studio 9.0\VC\INCLUDE\math.h(525): 或       “float
pow(float,float)”
        D:\Microsoft Visual Studio 9.0\VC\INCLUDE\math.h(489): 或       “double
 pow(double,int)”
        D:\Microsoft Visual Studio 9.0\VC\INCLUDE\math.h(123): 或       “double
 pow(double,double)”
        试图匹配参数列表“(float, double)”时




这是楼主代码编译输出的。。。。

自由、民主、宪政!
2012-11-21 16:43
lixuge
Rank: 1
等 级:新手上路
帖 子:20
专家分:0
注 册:2012-11-13
收藏
得分:0 
回复 13楼 lwb603569640
这是什么意思啊,看不懂啊,下一步该怎么改啊。
2012-11-21 16:56
lixuge
Rank: 1
等 级:新手上路
帖 子:20
专家分:0
注 册:2012-11-13
收藏
得分:0 
回复 14楼 lixuge
是不是pow()里面的函数定义错了吗?还是怎么回事啊
2012-11-21 18:13
小强。小强
Rank: 2
来 自:山西大同
等 级:论坛游民
帖 子:42
专家分:56
注 册:2012-11-15
收藏
得分:3 
我把这改了一下用VC6.0运行就没错误了,
void main()
{
    float gjv,jv,ch,de,ck,e,L,Hp,D,W;
    float mr,tin,Tc;
    float ta,tw,v;
    float Qr_sh,Qr_sc,Qr_tp,Qz;
    float Lz,L_sh,L_tp,L_sc;
    float hjs,hyt,tout,xout;
    gjv=10e-3f;
    jv=2.5e-3f;
    ch=0.1e-3f;
    de=3.74e-3f;
    ck=0.016f;
    e=0.0005f;
    Tc=45;
    tin=75;
    mr=0.005f;
    v=360/2.0f;
    ta=20;
    tw=12;
    L=0.62f;
    Hp=0.008f;
    D=0.0015f;
    W=0.001f;
2012-11-21 18:40
小小战士
Rank: 9Rank: 9Rank: 9
等 级:蜘蛛侠
威 望:1
帖 子:569
专家分:1313
注 册:2012-11-3
收藏
得分:3 
果然有高手,我是没有心思看下去了!

小小战士,战士中的战斗机!
2012-11-21 18:46
lixuge
Rank: 1
等 级:新手上路
帖 子:20
专家分:0
注 册:2012-11-13
收藏
得分:0 
回复 15楼 lixuge
高手,等改的算出结果不?现在主要问题是调试完没错误,就是不出结果啊!愁人啊
2012-11-21 20:11
lixuge
Rank: 1
等 级:新手上路
帖 子:20
专家分:0
注 册:2012-11-13
收藏
得分:0 
求结果啊,运行的时候还是没结果
2012-11-21 21:07
lixuge
Rank: 1
等 级:新手上路
帖 子:20
专家分:0
注 册:2012-11-13
收藏
得分:0 
回复 13楼 lwb603569640
你这个是不是因为编译器不同,所以才出现的错误。
2012-11-22 08:50
快速回复:为什么c语言会出现这样的错误呢?还运行不出来!!!
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.046467 second(s), 7 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved