标题:各位大神帮我看看问题吧
取消只看楼主
可爱的蓝精灵
Rank: 1
等 级:新手上路
帖 子:10
专家分:0
注 册:2019-7-8
结帖率:100%
 问题点数:0 回复次数:1 
各位大神帮我看看问题吧
#include<stdio.h>
int main()
{
    int max(int x,int y);
    int a,b,c;
    scanf("%d,%d,&a,&b);
    c=max(a,b);
    printf("max=%d\n",c);
        return 0;
}
int max(int x,int y)
{
    int z;
    if(x>y)z=x;
    else z=y;
    return(z);
}
C:\Users\20305\Desktop\new.cpp(6) : error C2001: newline in constant
C:\Users\20305\Desktop\new.cpp(7) : error C2146: syntax error : missing ')' before identifier 'c'
执行 cl.exe 时出错.

new.obj - 1 error(s), 0 warning(s)

搜索更多相关主题的帖子: int max Users Desktop new 
2019-07-08 20:12
可爱的蓝精灵
Rank: 1
等 级:新手上路
帖 子:10
专家分:0
注 册:2019-7-8
得分:0 
谢谢
2019-07-09 16:47



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




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

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