上一页 1 ··· 250 251 252 253 254 255 256 257 258 ··· 367 下一页
摘要: 1、c语言中浮点值的上溢 #include <stdio.h> int main(void) { float test1 = 5.2e4 * 100.0f; float test2 = 5.2e40 * 100.0f; //超出float类型可以表示的范围。 printf("test1: %e.\n 阅读全文
posted @ 2021-07-20 22:00 小鲨鱼2018 阅读(314) 评论(0) 推荐(0) 编辑
摘要: c语言中打印浮点数。 #include <stdio.h> int main(void) { float f = 100.0; double d = 1.0e2; long double ld = 1.0e2; printf("float: %f.\n", f); printf("float: %e 阅读全文
posted @ 2021-07-19 23:48 小鲨鱼2018 阅读(2228) 评论(0) 推荐(0) 编辑
摘要: 1、测试文件 [root@centos79 test]# cat a.txt 3 5 6 s f s d g d e w f g e k [root@centos79 test]# cat b.txt 3 5 6 s f s d g d e w f g e k 2、直接使用diff [root@ce 阅读全文
posted @ 2021-07-19 00:33 小鲨鱼2018 阅读(144) 评论(0) 推荐(0) 编辑
摘要: 1、测试数据 [root@centos79 test]# cat -A a.txt SUN08^ISUN09^ISUN10^M$ dddd^I33333^Icdddd^M$ dddd^I11111^I55555^M$ 2、dos2unix删除 [root@centos79 test]# cat a. 阅读全文
posted @ 2021-07-17 22:56 小鲨鱼2018 阅读(382) 评论(0) 推荐(0) 编辑
摘要: 1、测试数据 [root@centos79 test3]# cat a.txt 3 5 6 2 s g 3 5 c f h e 2、实现第一列和第三列的互换 [root@centos79 test3]# cat a.txt 3 5 6 2 s g 3 5 c f h e [root@centos79 阅读全文
posted @ 2021-07-17 14:42 小鲨鱼2018 阅读(817) 评论(0) 推荐(0) 编辑
摘要: 1、测试数据 [root@centos79 test3]# cat a.txt 3 5 6 2 s g 3 5 c f h e 2、删除第二列 [root@centos79 test3]# cat a.txt 3 5 6 2 s g 3 5 c f h e [root@centos79 test3] 阅读全文
posted @ 2021-07-17 14:37 小鲨鱼2018 阅读(12194) 评论(0) 推荐(0) 编辑
摘要: 1、测试数据 [root@centos79 test]# cat a.txt e t q t x g a w i k h e [root@centos79 test]# cat b.txt 4 5 6 2 d 2 s g y 2、将b.txt中的第2列用a.txt中的第3列进行替换 [root@ce 阅读全文
posted @ 2021-07-17 01:59 小鲨鱼2018 阅读(2155) 评论(0) 推荐(0) 编辑
摘要: 1、测试数据 [root@centos79 test]# cat a.txt e t q t x g a w i k h e 2、cut删除 [root@centos79 test]# cat a.txt e t q t x g a w i k h e [root@centos79 test]# c 阅读全文
posted @ 2021-07-17 01:53 小鲨鱼2018 阅读(5403) 评论(0) 推荐(0) 编辑
上一页 1 ··· 250 251 252 253 254 255 256 257 258 ··· 367 下一页