会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
小鲨鱼2018
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
278
279
280
281
282
283
284
285
286
···
403
下一页
2021年9月18日
c primer plus 11 编程练习
摘要: 1、 #include <stdio.h> #define SIZE 100 void get_n(char * ar, int n); int main(void) { int n; printf("n = "); scanf("%d", &n); while(getchar() != '\n')
阅读全文
posted @ 2021-09-18 10:09 小鲨鱼2018
阅读(88)
评论(0)
推荐(0)
2021年9月17日
c primer plus 11 复习题
摘要: 9、 #include <stdio.h> char *s_gets(char *st, int n); int main(void) { char st1[100]; s_gets(st1, 100); puts(st1); return 0; } char *s_gets(char *st, i
阅读全文
posted @ 2021-09-17 21:47 小鲨鱼2018
阅读(73)
评论(0)
推荐(0)
2021年9月9日
c primer plus 10 编程练习
摘要: 1、 #include <stdio.h> #define MONTHS 12 #define YEARS 5 int main(void) { const float rain[YEARS][MONTHS] = { {4.3, 4.3, 4.3, 3.0, 2.0, 1.2, 0.2, 0.2,
阅读全文
posted @ 2021-09-09 18:32 小鲨鱼2018
阅读(70)
评论(0)
推荐(0)
2021年9月3日
c primer plus 9编程练习
摘要: 复习题 9 #include <stdio.h> void show_menu(void); int getchoice(int low, int high); int main(void) { int res; show_menu(); while((res = getchoice(1,4)) !
阅读全文
posted @ 2021-09-03 21:45 小鲨鱼2018
阅读(86)
评论(0)
推荐(0)
2021年9月1日
托马斯微积分 p27 - 55
摘要: x <- c(0.20, 0.65, 1.13, 2.55, 4.00, 5.75, 7.80, 10.20, 12.90, 16.00, 18.40) y <- c(1.8, 3.6, 5.4, 7.2, 9.0, 10.8, 12.6, 14.4, 16.2, 18.0, 19.8) plot(
阅读全文
posted @ 2021-09-01 16:20 小鲨鱼2018
阅读(155)
评论(0)
推荐(0)
2021年8月29日
c语言中统计文件行数
摘要: 1、 #include <stdio.h> #include <stdlib.h> int main(void) { int ch; FILE * fp; char filename[128]; int lines; char tail; printf("please input the filen
阅读全文
posted @ 2021-08-29 18:52 小鲨鱼2018
阅读(2030)
评论(0)
推荐(0)
c语言统计文件单词数
摘要: 1、 #include <stdio.h> #include <stdlib.h> #include <ctype.h> #include <stdbool.h> int main(void) { int ch; char filename[128]; FILE * fp; bool word =
阅读全文
posted @ 2021-08-29 16:49 小鲨鱼2018
阅读(262)
评论(0)
推荐(0)
c语言中统计单词数目
摘要: 1、 #include <stdio.h> #include <ctype.h> #include <stdbool.h> int main(void) { char ch; bool word = false; bool space = false; int words = 0; while((c
阅读全文
posted @ 2021-08-29 16:23 小鲨鱼2018
阅读(708)
评论(0)
推荐(0)
2021年8月28日
c primer plus 8编程练习
摘要: 1、 #include <stdio.h> #include <stdlib.h> int main(void) { int ch; FILE * fp; char filename[128]; int sum = 0; printf("please input filename: "); scan
阅读全文
posted @ 2021-08-28 23:43 小鲨鱼2018
阅读(102)
评论(0)
推荐(0)
2021年8月27日
c 语言 限制用户的选项(菜单浏览)
摘要: 1、 #include <stdio.h> int main(void) { char choice; printf("a) xxxx b) yyyy\n"); printf("c) zzzz q) quit.\n"); printf("input your choice: "); while((c
阅读全文
posted @ 2021-08-27 02:12 小鲨鱼2018
阅读(169)
评论(0)
推荐(0)
上一页
1
···
278
279
280
281
282
283
284
285
286
···
403
下一页
公告