递归调用的问题 关于n的阶乘!
#include "stdafx.h"#include "iostream"
using namespace std;
int njc(int n)
{
int c;
if(n = 1||n < 1)
c = 1;
else
c = njc(n)*njc(n - 1);
return c;
}
int main(int argc, char* argv[])
{
int a;
cin>>a;
cout<<njc(a);
return 0;
}
