上一页 1 ··· 66 67 68 69 70 71 72 73 74 ··· 78 下一页
摘要: 分别用while,do-while,for语句实现 方法一:while #include<stdio.h> int main() { int m; m = 1; while (m<=1000) { if (m % 3 == 0) printf("%5d", m); m = m + 1; } } 方法 阅读全文
posted @ 2019-11-11 13:02 木子欢儿 阅读(2952) 评论(0) 推荐(0) 编辑
摘要: 方法一:if-else #include<stdio.h> int main() { printf("请输入成绩:\n"); float score; scanf_s("%f", &score); if (score >= 90) printf("成绩等级为:A\n"); else if (scor 阅读全文
posted @ 2019-11-11 12:32 木子欢儿 阅读(9736) 评论(0) 推荐(0) 编辑
摘要: 日常使用电脑过程中经常会遇到一些流氓捆绑软件,今天我们教大家如何轻松的强制卸载流氓软件。非常小巧而且强大的一款强制卸载工具,干净清爽。 工具/原料 Geek Uninstaller 方法/步骤 首先我们下载工具,百度输入geek点击搜索,如下图是工具的网站。 打开主页后,点击download按钮。 阅读全文
posted @ 2019-11-10 18:55 木子欢儿 阅读(1344) 评论(0) 推荐(0) 编辑
摘要: <!-- 音乐播放器 --><link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/aplayer/dist/APlayer.min.css"> <div class="aplayer" data-id="2440040711" data- 阅读全文
posted @ 2019-11-10 11:26 木子欢儿 阅读(556) 评论(0) 推荐(0) 编辑
摘要: ASCII码表具体如下所示 : Bin (二进制) Oct (八进制) Dec (十进制) Hex (十六进制) 缩写/字符 解释 0000 0000 00 0 0x00 NUL(null) 空字符 0000 0001 01 1 0x01 SOH(start of headline) 标题开始 00 阅读全文
posted @ 2019-11-10 10:48 木子欢儿 阅读(1118) 评论(0) 推荐(0) 编辑
摘要: 区别在以下方面: 一、定义方面: 1、int为整数型,用于定义整数类型的数据 。 2、float为单精度浮点型,能准确到小数点后六位 。 3、double为双精度浮点型,能准确到小数点都十二位 。 4、char为字符型,用于定义字符类型的数据。 二、内存占据: 1、int 的内存大小是4 个byte 阅读全文
posted @ 2019-11-09 23:02 木子欢儿 阅读(13794) 评论(0) 推荐(0) 编辑
摘要: #include<stdio.h> int main() { double x1, x2, x3, x4; printf("输入2个浮点数x1,x2:\n"); scanf_s("%lf,%lf", &x1, &x2); printf("%lf,%lf\n", x1, x2); printf("输入 阅读全文
posted @ 2019-11-09 21:34 木子欢儿 阅读(6634) 评论(0) 推荐(0) 编辑
摘要: 求一元二次方程:ax2+bx+c=0 的根。 输入三个实数a,b,c的值,且a不等于0。 #include<stdio.h> #include<math.h> int main() { printf("请输入a,b,c\n"); float a, b, c, t, p, q, x1, x2; sca 阅读全文
posted @ 2019-11-09 11:25 木子欢儿 阅读(7164) 评论(0) 推荐(0) 编辑
摘要: 课本例题 #include<stdio.h> int main() { /*x,bw,sw,gw分别用来存放三位正整数及其百位,十位和个位数*/ int x, bw, sw, gw; printf("请输入一个三位正整数:\n"); scanf_s("%d", &x); bw = x / 100; 阅读全文
posted @ 2019-11-08 14:36 木子欢儿 阅读(3998) 评论(0) 推荐(0) 编辑
摘要: 课本例题 #include<stdio.h> int main() { int year, month, day; printf("请输入身份证号码:\n"); scanf_s("%*6d%4d%2d%2d%*d", &year, &month, &day); printf("%4d-%02d-%0 阅读全文
posted @ 2019-11-08 14:15 木子欢儿 阅读(961) 评论(0) 推荐(0) 编辑
上一页 1 ··· 66 67 68 69 70 71 72 73 74 ··· 78 下一页