码迷,mamicode.com
首页 > 编程语言 > 详细

关于C++求教—函数调用

时间:2014-11-20 23:24:57      阅读:187      评论:0      收藏:0      [点我收藏+]

标签:io   sp   bs   amp   as   c++   nbsp   return   ca   

#include <stdio.h>
int main ()
{
 int max(int x,int y);
 int a,b,c;
 printf("please enter two integer numbers:");
 scanf("%d%d",&a,&b);
 c=max(a,b);
 printf("max is %d\n",c);
 return 0;
}
int max(int x,int y)
{
 int z;
 if(x>y)
 {
  z=x;
 }
 else
 {
  z=y;
 }
 return(z);
}

关于C++求教—函数调用

标签:io   sp   bs   amp   as   c++   nbsp   return   ca   

原文地址:http://www.cnblogs.com/szz-55555/p/4111748.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!