标题:[讨论] 帮助给修改一下
取消只看楼主
jk_psz
Rank: 1
等 级:新手上路
帖 子:4
专家分:0
注 册:2005-12-6
 问题点数:0 回复次数:0 
[讨论] 帮助给修改一下


#include <iostream.h>
double qccf(int x,int y)

void main()
{
int t,x,y;
double c;

t=1;
cout<<"qingshuruxdezhi";
cin>>x;
cout<<"qingshuruxdezhi";
cin>>y;
c= qccf( x, y);
cout<<c<<endl;
}

qccf(int x,int y)
{if(y=1)
c=x;
else if(y>1)
{c=qccf(x,y)*x;
t++;
cout<<t<<endl;}
return(c);}




请各位老师给修改一下!!!!!
是递归 X 的Y次方!!!

2005-12-10 11:13



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-37603-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.080513 second(s), 8 queries.
Copyright©2004-2025, BCCN.NET, All Rights Reserved