遞歸練習之 a 到 b 的整數和 (c/c++)
/*********************************************************************************
Copyright (C), 1988-1999, drvivermonkey. Co., Ltd.
File name:
Author: Driver Monkey
Version:
Mail:[email protected] qq:196568501
Date: 2014.04.02
Description: 遞歸練習之 a 到 b 的整數和
*********************************************************************************/
#include
#include
#include
#include
#include
#include
#include
#include
#include /* labs */
#include
using namespace std;
static int fuction(int a, int b);
int main()
{
cout<<"fuction = " < b)
{
return 0;
}
return (a + fuction(a + 1, b));
}