上一页 1 ··· 5 6 7 8 9 10 11 12 13 下一页
摘要: 1 fn main() { 2 let mut demo = 12; 3 println!("{}",demo); 4 demo = 21; // 值可变,数据类型不可变 5 println!("{}",demo); 6 7 let mut demo = true; // 利用shadow 覆盖de 阅读全文
posted @ 2020-12-10 19:59 un-define 阅读(170) 评论(0) 推荐(0)
摘要: 一个大神的方差分析总结。 阅读全文
posted @ 2020-12-10 16:42 un-define 阅读(78) 评论(0) 推荐(0)
摘要: 集群home目录被管理员限制了存储空间,rust安装要100多M,默认安装home目录下,查了一圈,没找到rust指定安装目录的办法。 这里记录下解决办法: 在想要安装的目录执行 mkdir -p cargo/bin rustup 先构建默认的目录层级,然后将cargo 和rustup目录软链接到h 阅读全文
posted @ 2020-11-27 15:00 un-define 阅读(2635) 评论(0) 推荐(0)
摘要: perl中的引用和C中的指针一样,用"\"标识,引用后可使用符号“->”取值。解引用则在对应的数据类型前加$,@ 或%。 这里这里用两数组求和做示例,引用传递的子函数的用法。 1 use strict; 2 3 my @s1=(1,13,4,25,6,27,8,22); 4 my @s2=(11,2 阅读全文
posted @ 2020-11-20 15:42 un-define 阅读(646) 评论(0) 推荐(0)
摘要: 1 #!/usr/bin/perl -w 2 use strict; 3 use FindBin qw($Bin $Script); 4 5 my $rp=$Bin; 6 print "the script dir:$rp\nscript name:$Script\n"; 7 8 use Cwd q 阅读全文
posted @ 2020-11-20 11:34 un-define 阅读(182) 评论(0) 推荐(0)
摘要: 今天介绍一个R画图布局的包,地址如下: https://github.com/zzawadz/customLayout https://www.customlayout.zstat.pl/index.html 阅读全文
posted @ 2020-11-17 09:28 un-define 阅读(551) 评论(0) 推荐(0)
摘要: 再改进下上次的读入一行函数,利用zlib库的gzgtec函数读取文件,动态分配内存,最后没有多出空行。 1 #include <stdio.h> 2 #include <stdlib.h> 3 #include <string.h> 4 #include <zlib.h> 5 6 char *rea 阅读全文
posted @ 2020-11-10 15:37 un-define 阅读(154) 评论(0) 推荐(0)
摘要: 在之前的博客中 https://www.cnblogs.com/mmtinfo/p/13036039.html 读取一行的getline()函数是GNU 的扩展函数。 这里用自定义函数实现这个功能,从文件中读取整行,不论一行多长,动态分配内存。 1 #include <stdlib.h> 2 #in 阅读全文
posted @ 2020-11-06 19:47 un-define 阅读(368) 评论(0) 推荐(0)
摘要: 修改可读取压缩格式文件 1 #include <stdio.h> 2 #include <stdlib.h> 3 #include <string.h> 4 #include <zlib.h> 5 6 #define RLEN 1024 7 8 static void getfq(char *fq) 阅读全文
posted @ 2020-11-04 17:17 un-define 阅读(227) 评论(0) 推荐(0)
摘要: 目前只能处理短序列,若要处理长序列,可按照https://www.cnblogs.com/mmtinfo/p/13036039.html的读取方法。 1 #include <stdio.h> 2 #include <stdlib.h> 3 #include <string.h> 4 #define 阅读全文
posted @ 2020-11-04 10:34 un-define 阅读(324) 评论(0) 推荐(0)
上一页 1 ··· 5 6 7 8 9 10 11 12 13 下一页