/*
*Copyright (c) 2016
*All rights reserved.
*文件名称:main.cpp
*作 者:王者健
*完成日期:2016年 6 月 7 日
*版 本 号:16.01
*/
#include <iostream>
using namespace std;
int f(int n);
int main()
{
cout<<f(5)<<" ";
cout<<f(8)<<endl;
return 0;
}
int f(int n)
{
static int a=2;
int b=0;
a+=n;
b+=a;
return b;
}
静态储存
最新推荐文章于 2024-04-17 09:35:59 发布
