标题:刚学,懂的进来看下
取消只看楼主
lvh
Rank: 1
等 级:新手上路
帖 子:2
专家分:0
注 册:2010-8-24
结帖率:0
已结贴  问题点数:4 回复次数:1 
刚学,懂的进来看下
为什么输入任意俩个数出来的都是4198405,这个数是什么意思.



#include "stdafx.h"


int main(int argc, char* argv[])
{
    int x,y;
    scanf("%d %d",&x,&y);
    int max(int a,int b);
    printf("max=%d\n",max);
    return 1;   
}
int max(int a,int b)
{
    int temp;
    if(a>b)
        temp=a;
    else
        temp=b;
    return temp;
}
搜索更多相关主题的帖子: max include return 
2010-10-17 11:18
lvh
Rank: 1
等 级:新手上路
帖 子:2
专家分:0
注 册:2010-8-24
得分:0 
以下是引用瓦药墙在2010-10-17 11:36:33的发言:

#include "stdafx.h"


int main(int argc, char* argv[])
{
    int x,y;
    scanf("%d %d",&x,&y);
    int max(int a,int b);
    printf("max=%d\n",max(x, y));
    return 1;   
}
int max(int a,int b)
{
    int temp;
    if(a>b)
        temp=a;
    else
        temp=b;
    return temp;
}
int max(int a,int b);   max函数已经声明过了,为什么会调用不成。  
 printf("max=%d\n",max(x, y));为什么把max换成max(x,y)就可以了,
最后一个问题,4198405这个数是什么???
2010-10-17 21:08



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




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

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