C++-Linux-统计一个文件夹占据空间大小
https://my.oschina.net/Tsybius2014/blog/330628
Read note →https://my.oschina.net/Tsybius2014/blog/330628
Read note →https://blog.csdn.net/ccw_922/article/details/124662275 https://blog.csdn.net/sinat_35945236/article/details/124505414 lock_guard 和 unique_lock 都可以...
Read note →C++工程,使用new操作符,new一个抽象类对象时编译报错如下: Error:invalid new-expression of abstract class type XXX 原因 派生类如果仍含有未被覆盖的纯虚函数,就仍是抽象类。 抽象类不能直接创建对象;只有纯虚函数都被非纯虚函数覆盖、...
Read note →C++11 使用 condition_variable 加上 mutex 封装了一个基于状态标志的等待/通知类,并非 Windows 事件的完全等价实现。 NotifyOne() 只唤醒一个当前等待者,NotifyAll() 唤醒全部当前等待者;两者都会将 bNotifyTick 置为 tru...
Read note →利用fstream文件流输出 利用stat查看文件大小 设定文件最大值宏定义 ``` #include #include #include <sys/stat.h>
Read note →Linux下使用C++11的chrono库获取时间。 标准版本范围: C++11–C++17 的标准没有规定 std::chrono::system_clock 的 epoch 必须对应 Unix 时间;下面的返回值以实现的 time_t epoch 为参考,不保证在所有平台上都是 Unix 毫秒。
Read note →当Linux应用程序提示端口被占用,解决方案是先查询端口占用进程的pid,然后kill pid。 netstat -tlnap |grep port lsof -i:port查看端口占用的进程
Read note →在安装搜狗输入法时,遇到过thunderbird包版本过低不兼容的问题, 问题的格式如下: thunderbird-local-zh-hans: depends: thunderbird(<1:31 build 12.04.... but ..... 14.04 is to be ins...
Read note →搜狗输入法Linux版本:sogoupinyin_4.2.1.145_amd64.deb 下载地址:https://shurufa.sogou.com/linux 安装指南:https://shurufa.sogou.com/linux/guide sogoupinyin_4.2.1.145_...
Read note →