04 2021 档案
摘要:如果想要在C++程序中用vector传递一个大内存,用swap是比较快的方法,不过传递之后,原始数据就不存在了。 如果后续不再使用原数据,用swap会比较好。 #include <iostream> #include <ctime> #include <vector> using namespace
阅读全文
摘要:Linux运行程序时报: ./Test2: error while loading shared libraries: lib***.so: cannot open shared object file: No such file or directory 一般遇见这个问题,直接ldd看一下依赖的s
阅读全文