/*
*Copyright (c) 2014, 烟台大学计算机学院
*All rights reserved.
*文件名称:test.cpp
*作者:于凯
*完成日期:2014年 11 月13日
*版本号:v1.0
*
*问题描述:
*输入描述:
*输出描述:
* main.cpp
*/
#include <iostream>
using namespace std;
int a=3, b=5;
int max(int a, int b)
{
int c;
c=a>b? a:b;
return c;
}
int main()
{
int a=8;
cout<<max(a,b)<<endl;
return 0;
}
运行结果: