第十二周项目全局变量的程序1

来源:互联网 发布:python string split 编辑:程序博客网 时间:2024/06/05 13:22
/*   *Copyright (c)2014,烟台大学计算机学院   *All gight reserved.   *文件名称:temp.cpp   *作者:曾晓   *完成时间:2014年11月13日   *版本号:v1.0 */  #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;}
运行结果:
<img src="http://img.blog.csdn.net/20141113172125578" alt="" />
0 0
原创粉丝点击