标题:出现基本错误,望指点!
取消只看楼主
lichu521
Rank: 1
等 级:新手上路
帖 子:1
专家分:0
注 册:2010-3-31
结帖率:0
已结贴  问题点数:20 回复次数:0 
出现基本错误,望指点!
# include<iostream.h>
int max_value(int a,int b,int c);
int min_value(int a,int b,int c);
void main()
{
    int x,y,z;
    cout <<"请输入三个整数:";
    cin>>x>>y>>z;
    cout <<"最大值:"<<max_value(x,y,z)<<endl;
    cout <<"最小值:"<<min_value(x,y,z)<<endl;
}
int max_value(int a,int b,int c);
{
    if(a<b) a=b;
    if(a<c) a=c;
    return a;
}
int min_value(int a,int b,int c);
{
    if(a>b) a=b;
    if(a>c) a=c;
    return a;
}
提示错误:
missing function header (old-style formal list?)
搜索更多相关主题的帖子: void 
2010-03-31 17:04



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-301190-1-1.html




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

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