摘要:
c语言中浮点数的舍入错误。 1、 #include <stdio.h> int main(void) { float a, b; b = 2.0e20 + 1.0; a = b - 2.0e20; float c, d; d = 2.0e5 + 1.0; c = d - 2.0e5; printf( 阅读全文
摘要:
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 阅读全文
摘要:
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 阅读全文
摘要:
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] 阅读全文
摘要:
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 阅读全文