上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 27 下一页
摘要: 第一题: #include <stdio.h> #include <math.h> #define N 20 int fun(int n){ if(n==1||n==2) return 1; else return fun(n-1)+fun(n-2); } int main(){ int i,j; 阅读全文
posted @ 2020-10-10 00:49 薄眠抛却陈年事。 阅读(254) 评论(0) 推荐(0) 编辑
摘要: 第一题: #include <stdio.h> #include <math.h> FILE *in=fopen("Coefficent.txt","r+"); FILE *out=fopen("result.txt","w+"); void deal(int a,int b,int c); voi 阅读全文
posted @ 2020-10-09 00:41 薄眠抛却陈年事。 阅读(275) 评论(0) 推荐(0) 编辑
摘要: 第一题: #include <stdio.h> #include <math.h> double T(int n,double x){ if(n==0) return 1; else if(n==1) return x; else return 2*x*T(n-1,x)-T(n-2,x); } in 阅读全文
posted @ 2020-10-08 00:04 薄眠抛却陈年事。 阅读(266) 评论(0) 推荐(0) 编辑
摘要: 第一题: #include <stdio.h> double fun(double x,int n){ if(n==0) return 1; else if(n==1) return x; else return x*fun(x,n-1); } int main(){ printf("请输入实数x和 阅读全文
posted @ 2020-10-06 23:52 薄眠抛却陈年事。 阅读(579) 评论(0) 推荐(0) 编辑
摘要: 第一题代码: #include <stdio.h> #include <math.h> #define N 10 int main(){ int i,j,k; double t=0.0,a,b,c; FILE *fp=fopen("data.txt","w+"); for(i=0;i<N;i++){ 阅读全文
posted @ 2020-10-06 23:49 薄眠抛却陈年事。 阅读(343) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2020-09-02 20:44 薄眠抛却陈年事。 阅读(109) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2020-09-02 20:37 薄眠抛却陈年事。 阅读(140) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2020-09-02 17:21 薄眠抛却陈年事。 阅读(142) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2020-09-02 17:20 薄眠抛却陈年事。 阅读(118) 评论(0) 推荐(0) 编辑
摘要: 01. 类和对象的概念 类 和 对象 是 面向对象编程的 两个 核心概念 1.1 类 类 是对一群具有 相同 特征 或者 行为 的事物的一个统称,是抽象的,不能直接使用 特征 被称为 属性 行为 被称为 方法 类 就相当于制造飞机时的图纸,是一个 模板,是 负责创建对象的 1.2 对象 对象 是 由 阅读全文
posted @ 2020-09-02 17:19 薄眠抛却陈年事。 阅读(127) 评论(0) 推荐(0) 编辑
上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 27 下一页