#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=a+n;
b=b+a;
return b;
}
需要用自己的判断力去判断程序的对错,对自己很有挑战
#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=a+n;
b=b+a;
return b;
}
需要用自己的判断力去判断程序的对错,对自己很有挑战