以下哪些问题通过应用成绩模式不能够解决【】
#include
using namespace std;
void f(int x[]. Int n)
{
if(n > 1)
{
f(&x[1],n-1);
cout << x[0];
}
else
cout << x[0];
}
int main()
{
int z[6]={1,2,3,4,5,6};
f(z,6);
cout<<”\n”;
return 0;
}
int f(int x)
{
if(x <= 2)
return1;
return f(x - 2) + f(x - 4) + 1;
}