上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 106 下一页
摘要: 转自:https://blog.csdn.net/DLUTBruceZhang/article/details/9822235 1.例子 int main(){ string s="abc"; cout<<sizeof(s)<<"\n"; cout<<sizeof(string)<<"\n"; ve 阅读全文
posted @ 2023-01-15 20:19 lypbendlf 阅读(3629) 评论(0) 推荐(0)
摘要: 转自:https://zhuanlan.zhihu.com/p/470315089 1.介绍 通过以下命令: cat /proc/pid/status 即可查看所占用内存情况,C++中通过getpid()函数即可打印进程的pid,类型为pid_t, VSZ:Virtual Memory Size(虚 阅读全文
posted @ 2023-01-15 20:14 lypbendlf 阅读(868) 评论(0) 推荐(0)
摘要: 转自:https://www.jianshu.com/p/0821801170dd,https://zhuanlan.zhihu.com/p/357115847 1.什么是优雅退出 退出一个线程的时候,要保证它使用的资源被释放掉,不能直接stop,否则可能导致未定义的行为,那么如何保证线程退出前所占 阅读全文
posted @ 2023-01-14 12:01 lypbendlf 阅读(146) 评论(0) 推荐(0)
摘要: 转自:https://blog.csdn.net/Koyurion/article/details/86315532 1.用法 #include<typeinfo> //需要包含头文件 typeid(data).name() //打印值: bool: b char: c signed char: a 阅读全文
posted @ 2022-12-19 17:54 lypbendlf 阅读(155) 评论(0) 推荐(0)
摘要: 转自:https://www.cnblogs.com/zhangjiankun/archive/2011/11/27/2265184.html 1.介绍 计算机的存储在物理上是二进制的,所以文本文件与二进制文件的区别并不是物理上的,而是逻辑上的。这两者只是在编码层次上有差异。 文本文件是基于字符编码 阅读全文
posted @ 2022-12-18 22:39 lypbendlf 阅读(296) 评论(0) 推荐(0)
摘要: 1.ASCII https://zhuanlan.zhihu.com/p/348535438,https://developer.aliyun.com/article/294103 分为打印字符和不可打印字符,不可打印字符即控制字符,打印不会正常显示,ASCII码0-32及127对应的字符的显示是不 阅读全文
posted @ 2022-12-18 21:58 lypbendlf 阅读(195) 评论(0) 推荐(0)
摘要: 转自:http://doc.redisfans.com/string/set.html,https://juejin.cn/post/7120420868513071141 1.介绍 SET key value [EX seconds] [PX milliseconds] [NX|XX] EX se 阅读全文
posted @ 2022-12-18 19:21 lypbendlf 阅读(103) 评论(0) 推荐(0)
摘要: 转自:https://segmentfault.com/a/1190000039670844,https://bbs.csdn.net/topics/392160228,https://cloud.tencent.com/developer/article/1775715 1.介绍 SETNX ke 阅读全文
posted @ 2022-12-17 00:46 lypbendlf 阅读(1697) 评论(0) 推荐(0)
摘要: 转自:http://xcd.blog.techweb.com.cn/archives/173.html,https://blog.csdn.net/carson_ho/article/details/70568606 1.例子 int main(int argc, char* argv[]) { u 阅读全文
posted @ 2022-12-13 10:15 lypbendlf 阅读(335) 评论(0) 推荐(0)
摘要: 转自:https://www.runoob.com/redis/redis-sorted-sets.html 1.zset数据结构/zadd命令 Redis 有序集合和集合一样也是 string 类型元素的集合,且不允许重复的成员。每个元素都会关联一个 double 类型的分数。redis 正是通过 阅读全文
posted @ 2022-12-07 08:26 lypbendlf 阅读(190) 评论(0) 推荐(0)
上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 106 下一页