摘要:
就像下面的这个例子,直接把要返回的类型包裹在一个枚举中,接收函数再根据结果分别处理。 1 use std::fs::File; 2 use std::io::BufReader; 3 use flate2::read::GzDecoder; 4 #[allow(non_camel_case_type 阅读全文
摘要:
centos8 R语言安装stringi 失败,报错信息: checking whether the C++ compiler supports the long long type... no 解决办法: 去掉miniconda环境变量,然后执行 install.packages("stringi 阅读全文
摘要:
1 fn max<T: std::cmp::PartialOrd >(nn: &Vec<T>) -> &T { 2 let mut f = &nn[0]; 3 for i in nn{ 4 if i > f { 5 f = i; 6 } 7 } 8 f 9 } 10 fn main(){ 11 le 阅读全文