鱼C论坛

 找回密码
 立即注册
查看: 3322|回复: 2

帮忙找一下错误

[复制链接]
发表于 2014-4-21 23:00:01 | 显示全部楼层
#include(stdio.h)    //#include <stdio.h>
#include(math.h)   //#include <math.h>
int max (int a,int b);  //函数声明
void main()
{
  int x,y,z;
  int max(int a,int b);
  printf("inpur two munbers:\n");
  scanf("%d%d",&x,&y);
  z=max(x,y);
  printf("max munber=%d", z);
  return   0;
}
int max(int a,int b) //没     ";"
{
if(a>b) return  a;
     else return b;
}
小甲鱼最新课程 -> https://ilovefishc.com
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

小黑屋|手机版|Archiver|鱼C工作室 ( 粤ICP备18085999号-1 | 粤公网安备 44051102000585号)

GMT+8, 2025-11-2 10:06

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表