摘要:
Description The C library function int scanf(const char *format, ...) reads formatted input from stdin. Declaration Following is the declaration for s 阅读全文
摘要:
计算机的最基本功能是数据处理 l C++支持的基本数据类型: n 整数、实数、字符、布尔数据 l C++支持的基本运算 n 算术运算、关系运算、逻辑运算、位运算、逗号运算、条件运算 程序要能够输入数据、输出数据 l C++中的数据输入/输出可以调用预定义的功能模块实现 程序的执行流程 l 顺序的,因 阅读全文
摘要:
int Finobiacci(int n){ int a = 0,b = 1; int sum = 0; if (n==0||n==1) { return n;//当n为0或1,返回finobiacci 的值 }else{ for(int i = 0;i<n-1;i++)//采用备忘录的形式实现斐波切纳数的实现 ... 阅读全文