04 2019 档案

摘要:#include <iostream> #include <vector> #include <cstddef> #include <string> #include <sstream> #include <fstream> #include <algorithm> #include <cmath> 阅读全文
posted @ 2019-04-25 10:39 东宫得臣 阅读(139) 评论(0) 推荐(0) 编辑
摘要:template <class T> double VectorMedian(std::vector<T> &In) { std::sort(In.begin(), In.end()); if(In.size() % 2 == 0) { return 0.5*(In.at(In.size()/2)+ 阅读全文
posted @ 2019-04-10 20:08 东宫得臣 阅读(146) 评论(0) 推荐(0) 编辑
摘要:{ if(NF==1 && $0~/192.168/) host_name = $0 for(i=1;i<NF;++i) { if($i~/192.168/) { split($i, a, "=") printf("%s, %s\n", host_name, a[2]) } } } 原始数据: 19 阅读全文
posted @ 2019-04-10 15:57 东宫得臣 阅读(159) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2019-04-01 09:30 东宫得臣 阅读(221) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示