会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
sinlearn
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
13
14
15
16
17
2019年3月11日
三天打鱼两天晒网
摘要: /* Date: 11/03/19 11:04 Description: 三天打鱼两天晒网 */ 1 #include<stdio.h> 2 3 int sumDate(int year,int month,int day); 4 bool judge(int sumday); 5 bool lea
阅读全文
posted @ 2019-03-11 13:33 sinlearn
阅读(262)
评论(0)
推荐(0)
2019年3月10日
字符串逆序
摘要: /* Date: 10/03/19 19:39 Description:字符串逆序 */ #include<stdio.h> #include<string.h> void reverse(char s[]) { int i,n=strlen(s); char t; for(i=0;i<n/2;i+
阅读全文
posted @ 2019-03-10 19:59 sinlearn
阅读(175)
评论(0)
推荐(0)
求字符串长度函数实现的三种方法
摘要: /* Date: 10/03/19 12:49 Description: 求字符串长度函数实现的三种方法*/ 1 #include<stdio.h> 2 3 4 int strlen1(char *s); 5 int strlen2(char *s); 6 int strlen3(char *s);
阅读全文
posted @ 2019-03-10 13:12 sinlearn
阅读(3128)
评论(0)
推荐(0)
2019年3月7日
计算该日是该年的第几天
摘要: /* Date: 07/03/19 21:10 Description: 主要是闰年的判断和2月份的天数的处理 */ 1 #include<stdio.h> 2 int sumday(int month,int day); 3 int leap(int year); 4 int main(void)
阅读全文
posted @ 2019-03-07 21:32 sinlearn
阅读(304)
评论(0)
推荐(0)
职工信息中选择排序,折半查找的综合应用
摘要: /* Date: 07/03/19 19:27 Description: 选择排序、折半查找、函数的综合应用 */ 1 #include<stdio.h> 2 #include<string.h> 3 #define N 10 4 //函数声明部分 5 6 void input(int [],cha
阅读全文
posted @ 2019-03-07 20:35 sinlearn
阅读(237)
评论(0)
推荐(0)
牛顿迭代法求根
摘要: /* Date: 07/03/19 15:40 Description: 用牛顿迭代法求下面方程在1附近的近视根 f(x)=a*x*x*x+b*x*x+c*x+d=0 x1=x0-f(x)/f'(x)*/ 1 #include<stdio.h> 2 #include<math.h> 3 float
阅读全文
posted @ 2019-03-07 16:19 sinlearn
阅读(655)
评论(0)
推荐(0)
用递归方法求n阶勒让德多项式的值
摘要: /* Date: 07/03/19 15:40 Description: 用递归法求n阶勒让德多项式的值 { 1 n=0 Pn(x)= { x n=1 { ((2n-1).x-Pn-1(x)-(n-1).Pn-2(x)/n n>=1 */ #include<stdio.h> float Legend
阅读全文
posted @ 2019-03-07 16:14 sinlearn
阅读(1745)
评论(0)
推荐(0)
上一页
1
···
13
14
15
16
17
公告