上一页 1 2 3 4 5 6 7 8 9 10 ··· 107 下一页
摘要: 转自:https://zhuanlan.zhihu.com/p/340804463?utm_id=0,提到了许多参数,用到时可以参考 1.介绍 cat /etc/passwd | grep root 等同于 echo "hello world" | echo 管道命令|,将左侧命令(cat /etc 阅读全文
posted @ 2023-10-02 15:33 lypbendlf 阅读(9) 评论(0) 推荐(0) 编辑
摘要: 转自:https://liam.page/2017/05/25/the-mutable-keyword-in-Cxx/,讲的很好。 1.介绍 mutable即可变的,mutable只能用来修饰类的数据成员;而被 mutable 修饰的数据成员,可以在 const 成员函数中修改。 例子: class 阅读全文
posted @ 2023-10-01 21:00 lypbendlf 阅读(18) 评论(0) 推荐(0) 编辑
摘要: 转自:https://blog.csdn.net/xiaxiazls/article/details/50118161 https://blog.csdn.net/swartz_lubel/article/details/79193291,这里举的例子不错。 1、介绍 针对一个复杂对象类型,set_ 阅读全文
posted @ 2023-09-24 23:46 lypbendlf 阅读(26) 评论(0) 推荐(0) 编辑
摘要: 转自:https://blog.csdn.net/lyb3b3b/article/details/74993327 1、介绍 UTF-8编码规定英文字母系列用1个字节a56爆大奖在线娱乐,汉字用3个字节a56爆大奖在线娱乐等等。因此,它兼容ASCII,可以解码早期的文档。 >>> s = "中文" >>> s '中文' >>> t 阅读全文
posted @ 2023-09-24 13:21 lypbendlf 阅读(18) 评论(0) 推荐(0) 编辑
摘要: 转自:https://juejin.cn/post/7094272373930590245#heading-9,https://zhuanlan.zhihu.com/p/344269737 1、消息队列基本 作用:应用解耦(作为中介)、削峰填谷。redis做mq的优点:轻量级,使用和运维成本低。 m 阅读全文
posted @ 2023-07-30 23:45 lypbendlf 阅读(9) 评论(0) 推荐(0) 编辑
摘要: 转自:https://blog.csdn.net/qq_26499321/article/details/72085592,https://blog.icrystal.top/archives/13.html 1、线程不安全 线程安全 就是多线程访问时,采用了加锁机制,当一个线程访问该类的某个数据时 阅读全文
posted @ 2023-07-30 21:12 lypbendlf 阅读(37) 评论(0) 推荐(0) 编辑
摘要: 转自:https://blog.csdn.net/m0_51913750/article/details/130986465 1、介绍 assert 是一个宏,用于在运行时检查一个条件是否为真,如果条件不满足,则运行时将终止程序的执行并输出一条错误信息。条件满足为true时,不做任何操作。 asse 阅读全文
posted @ 2023-07-30 17:37 lypbendlf 阅读(18) 评论(0) 推荐(0) 编辑
摘要: 转自:https://vimsky.com/examples/usage/strtoul-function-in-c-c.html 1、介绍 unsigned long int strtoul(const char *str, char **end, int base); str指向源字符串,end 阅读全文
posted @ 2023-07-30 17:21 lypbendlf 阅读(34) 评论(0) 推荐(0) 编辑
摘要: 转自:https://blog.csdn.net/NiuYoohoo/article/details/84930404 1、介绍 errno 是用于错误指示的预处理器宏,数个标准库函数通过写入正整数到 errno 指示错误。 程序启动时 errno 的值为 ?0? ,而且尽管不管在错误发生与否时,允 阅读全文
posted @ 2023-07-30 16:52 lypbendlf 阅读(39) 评论(0) 推荐(0) 编辑
摘要: 转自:https://blog.csdn.net/u014694994/article/details/79074566 1、例子 stoi当字符串不符合规范时,会抛出异常。 #include <stdexcept> #include <iostream> #include <string> usi 阅读全文
posted @ 2023-07-26 21:48 lypbendlf 阅读(94) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 10 ··· 107 下一页