int calc(int x) { if(x==0) return 0; else return x+calc(x-1); cout<<x<<endl; } 此函数运算的结果为1到x的和。cout<<x<<endl; 这句话还没有运行,程序就结束了。