上一页 1 ··· 54 55 56 57 58 59 60 61 62 ··· 65 下一页
摘要: #include "common.h" #include <stdio.h> #include <stdlib.h> #include <math.h> static float test_equation = 0; static char letter_A = '\r'; int main() { 阅读全文
posted @ 2020-02-27 20:35 卷哭你 阅读(153) 评论(0) 推荐(0) 编辑
摘要: 带有浮点数,默认会转换为double类型存储。 #include "common.h" #include <stdio.h> #include <stdlib.h> #include <math.h> static float test_equation = 0; int main() { //只有 阅读全文
posted @ 2020-02-27 20:17 卷哭你 阅读(428) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2020-02-27 20:10 卷哭你 阅读(173) 评论(0) 推荐(0) 编辑
摘要: 注意几点: (1)单目和双目,就是单个元素和双个元素. (2)在不同运算符的时候,注意优先级。 (3)同一个语句的时候,注意左右结合性。 其实也很简单 阅读全文
posted @ 2020-02-27 19:52 卷哭你 阅读(100) 评论(0) 推荐(0) 编辑
摘要: 设变量n为float类型,m为int类型,则以下能实现将n中的数值保留小数点后两位,第三位进行四舍五入运算的表达式____. #include "common.h" #include <stdio.h> #include <stdlib.h> #include <math.h> //#define 阅读全文
posted @ 2020-02-27 19:44 卷哭你 阅读(538) 评论(0) 推荐(0) 编辑
摘要: 我还纠结着单目运算符和双目运算符和乘除的一些优先级什么事情。 #include "common.h" #include <stdio.h> #include <stdlib.h> #include <math.h> //#define static float Mathematical_modeli 阅读全文
posted @ 2020-02-27 18:23 卷哭你 阅读(161) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2020-02-27 16:58 卷哭你 阅读(130) 评论(0) 推荐(0) 编辑
摘要: 指数很重要,比如有一些欧拉公式 #include "common.h" #include <stdio.h> #include <stdlib.h> #include <math.h> static float Mathematical_modeling = 0; static int capaci 阅读全文
posted @ 2020-02-27 15:38 卷哭你 阅读(2205) 评论(0) 推荐(0) 编辑
摘要: 强制转换类型用括号括起来 #include "common.h" #include <stdio.h> #include <stdlib.h> static float Mathematical_modeling = 0; static int capacitance_modeling = 0; i 阅读全文
posted @ 2020-02-27 10:49 卷哭你 阅读(538) 评论(0) 推荐(0) 编辑
摘要: 取模就是取余,计算机术语和数学术语的差距,余数的好处把数据限制在被除余数里面, 4%5; 等于4; 模数不能浮点数,编译器报不过,必须是整数。 余数的生活案例,吃饭后剩余的东西,还有网吧多余的机器。 模数还有负数,这个比较复杂,先留下个记录。 其实取余,整除法那个多余的数,-7%3 = 3*(-2) 阅读全文
posted @ 2020-02-26 20:30 卷哭你 阅读(853) 评论(0) 推荐(0) 编辑
上一页 1 ··· 54 55 56 57 58 59 60 61 62 ··· 65 下一页