类的组合、静态存储(3)

来源:互联网 发布:vb上传图片到数据库 编辑:程序博客网 时间:2024/06/07 00:02

/*
 *copyright(c) 2014,烟台大学计算机学院
 *All rights reserved
 *文件名称:test.cpp
 *作者:吴雨凡
 *版本:v6.0
 *
 *问题描述:类的组合、静态存储(3)

 *输入描述:
 *程序输出:判断相关问题
*/

#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; 
}

0 0
原创粉丝点击