C语言求解werwerwe.cpp(6) : see declaration of 'high
来源:学生作业帮 编辑:大师作文网作业帮 分类:综合作业 时间:2024/09/22 14:26:14
C语言求解werwerwe.cpp(6) : see declaration of 'high
#include
#include
int main()
{
\x09int a,b,c,d;
\x09int high(int,int);
\x09scanf("%d%d%d%d",&a,&b,&c,&d);
\x09int high(a,b);
\x09int high(a,c);
\x09int high(a,d);
\x09int high(b,c);
\x09int high(b,d);
\x09int high(c,d);
\x09printf("%d,%d,%d,%d\n",a,b,c,d);
\x09return 0;
}
int high(int x,int y)
{
\x09int max;
\x09if (y>x)
\x09{
\x09\x09max=y;
\x09\x09y=x;
\x09\x09x=max;
\x09}
\x09return 0;
}
#include
#include
int main()
{
\x09int a,b,c,d;
\x09int high(int,int);
\x09scanf("%d%d%d%d",&a,&b,&c,&d);
\x09int high(a,b);
\x09int high(a,c);
\x09int high(a,d);
\x09int high(b,c);
\x09int high(b,d);
\x09int high(c,d);
\x09printf("%d,%d,%d,%d\n",a,b,c,d);
\x09return 0;
}
int high(int x,int y)
{
\x09int max;
\x09if (y>x)
\x09{
\x09\x09max=y;
\x09\x09y=x;
\x09\x09x=max;
\x09}
\x09return 0;
}
调用函数不能加上返回类型
high(a,b);
high(a,c);
这样才对.
另外,你这个函数是交换两个数吧?把大数放在后面?
你这样是交换不成功的,在函数声明里面这样写就行了int high(int&,int&);
high(a,b);
high(a,c);
这样才对.
另外,你这个函数是交换两个数吧?把大数放在后面?
你这样是交换不成功的,在函数声明里面这样写就行了int high(int&,int&);
C语言求解werwerwe.cpp(6) : see declaration of 'high
c# see declaration of 'book'
see declaration of 'main'怎么翻译呢?
C++ see declaration of错误 纯虚函数问题
error C2027:use of undefined type 'A' see declaration of 'A
declaration of neutrality是什么意思
CE declaration of compliance
declaration of interest是什么意思
Declaration of Identity是什么
单词连接 (link.pas/c/cpp)pascal语言的问题,求pascal程序详细内容
C++中的错误提示see declaration of '*******'是什么意思?*部分随定义不同不定
Declaration of Compliance什么意思