随笔分类 -  C练习题

考研C-892
摘要:字符串数组 // Code file created by C Code Develop #include "stdio.h" #include "stdlib.h" #include "string.h" #include "stdlib.h" // 字符串数组常用的函数 int main(){ 阅读全文
posted @ 2021-11-23 16:31 def_Class 阅读(50) 评论(0) 推荐(0)
摘要:n! // Code file created by C Code Develop #include "stdio.h" #include "stdlib.h" int main(){ int fac(int c); printf("%d", fac(- 4)); return 0; } int f 阅读全文
posted @ 2021-11-23 16:30 def_Class 阅读(78) 评论(0) 推荐(0)
摘要:题自:题目 1009: [编程入门]数字的处理与判断_C语言网 题目描述 给出一个不多于5位的整数,要求 1、求出它是几位数 2、分别输出每一位数字 3、按逆序输出各位数字,例如原数为321,应输出123 输入 一个不大于5位的数字 输出 三行 第一行 位数 第二行 用空格分开的每个数字,注意最后一 阅读全文
posted @ 2021-09-29 13:31 def_Class 阅读(53) 评论(0) 推荐(0)
摘要:问题描述 A、B、C、D、E这5个人合伙夜间捕鱼,凌晨时都已经疲惫不堪,于是各自在河边的树丛中找地方睡着了。第二天日上三竿时,A第一个醒来,他将鱼平分为5份,把多余的一条扔回河中,然后拿着自己的一份回家去了;B第二个醒来,但不知道A已经拿走了一份鱼,于是他将剩下的鱼平分为5份,扔掉多余的一条,然后只 阅读全文
posted @ 2021-09-26 21:25 def_Class 阅读(460) 评论(0) 推荐(0)