//m=10时一个简单例子 #include<iostream> using namespace std; int eat(int n=10) { int sum=1; if(n>1) sum=2*(eat(n-1)+1); return sum; } int main() { cout<<"桃子总数为:"<<eat()<<endl; return 0; }