1.加法器、累加器:(多实现 1+2+…+n 以及阶乘 n! 的功能)

一、求累加

int main(){
   
		
		int i =0;
		int res = 0;
		int n;
		cin >> n;
		
		while(i<

更多推荐

C/C++ 编程常见代码