<feed xmlns="http://www.w3.org/2005/Atom"> <id>https://luobochuanqi.github.io/</id><title>luobo::blogs</title><subtitle>Technology, Code and Love.</subtitle> <updated>2026-03-30T04:31:57+00:00</updated> <author> <name>luobo</name> <uri>https://luobochuanqi.github.io/</uri> </author><link rel="self" type="application/atom+xml" href="https://luobochuanqi.github.io/feed.xml"/><link rel="alternate" type="text/html" hreflang="zh-CN" href="https://luobochuanqi.github.io/"/> <generator uri="https://jekyllrb.com/" version="4.4.1">Jekyll</generator> <rights> © 2026 luobo </rights> <icon>/assets/img/favicons/favicon.ico</icon> <logo>/assets/img/favicons/favicon-96x96.png</logo> <entry><title>C++ 字符处理 cctype</title><link href="https://luobochuanqi.github.io/posts/Ctype/" rel="alternate" type="text/html" title="C++ 字符处理 cctype" /><published>2026-03-30T03:00:00+00:00</published> <updated>2026-03-30T03:00:00+00:00</updated> <id>https://luobochuanqi.github.io/posts/Ctype/</id> <content type="text/html" src="https://luobochuanqi.github.io/posts/Ctype/" /> <author> <name>luobo</name> </author> <category term="Blogs" /> <category term="Learn" /> <summary>C++ 字符处理 cctype &amp;lt;cctype&amp;gt;（C 风格为 &amp;lt;ctype.h&amp;gt;）提供字符分类和转换函数。 一、字符分类函数 所有分类函数返回 int，非零为真，零为假。 函数 说明 isalpha(c) 是否为字母 (a-z, A-Z) isdigit(c) 是否为数字 (0-9) isalnum(c) 是否为字母或数字 islower(c) 是否为小写字母 isupper(c) 是否为大写字母 isspace(c) 是否为空白字符（空格...</summary> </entry> <entry><title>C++ 字符串转数字 stoi/stod</title><link href="https://luobochuanqi.github.io/posts/StoX/" rel="alternate" type="text/html" title="C++ 字符串转数字 stoi/stod" /><published>2026-03-30T02:00:00+00:00</published> <updated>2026-03-30T02:00:00+00:00</updated> <id>https://luobochuanqi.github.io/posts/StoX/</id> <content type="text/html" src="https://luobochuanqi.github.io/posts/StoX/" /> <author> <name>luobo</name> </author> <category term="Blogs" /> <category term="Learn" /> <summary>C++ 字符串转数字 stoi/stod C++11 提供了一系列字符串转数字的函数，声明在 &amp;lt;string&amp;gt; 中。 一、常用函数 函数 说明 stoi(str) 字符串转 int stol(str) 字符串转 long stoll(str) 字符串转 long long stoul(str) 字符串转 unsigned long stoull(str) 字符串转 unsigned long long stof(str) 字符串转 float ...</summary> </entry> <entry><title>C++ 关联容器 map/set 小记</title><link href="https://luobochuanqi.github.io/posts/MapSet/" rel="alternate" type="text/html" title="C++ 关联容器 map/set 小记" /><published>2026-03-30T01:00:00+00:00</published> <updated>2026-03-30T01:00:00+00:00</updated> <id>https://luobochuanqi.github.io/posts/MapSet/</id> <content type="text/html" src="https://luobochuanqi.github.io/posts/MapSet/" /> <author> <name>luobo</name> </author> <category term="Blogs" /> <category term="Learn" /> <summary>C++ 关联容器 map/set 小记 一、容器对比 容器 底层结构 有序性 查找复杂度 特点 set 红黑树 有序 $O(\log n)$ 唯一键 multiset 红黑树 有序 $O(\log n)$ 允许重复键 map 红黑树 有序 $O(\log n)$ 键值对，键唯一 multimap 红黑树 有序 $O(\log n)$ 键值对，键可重复 ...</summary> </entry> <entry><title>C++ stringstream 小技巧</title><link href="https://luobochuanqi.github.io/posts/StringStream/" rel="alternate" type="text/html" title="C++ stringstream 小技巧" /><published>2026-03-30T00:00:00+00:00</published> <updated>2026-03-30T00:00:00+00:00</updated> <id>https://luobochuanqi.github.io/posts/StringStream/</id> <content type="text/html" src="https://luobochuanqi.github.io/posts/StringStream/" /> <author> <name>luobo</name> </author> <category term="Blogs" /> <category term="Learn" /> <summary>C++ stringstream 与 cout 格式化输出技巧 一、stringstream 基础用法 &amp;lt;sstream&amp;gt; 库提供了 stringstream，可以像操作流一样操作字符串，非常适合类型转换和字符串解析。 1.1 字符串与其他类型的转换 #include &amp;lt;iostream&amp;gt; #include &amp;lt;sstream&amp;gt; #include &amp;lt;string&amp;gt; using namespace std; int main() { // 数字转字符串 stringstream ss1; ss1 &amp;lt;&amp;lt; 12345; string str1 = ss1.str(); cout &amp;lt;&amp;lt; str1 &amp;lt;&amp;lt; endl; // 输出: 12345 // 字符...</summary> </entry> <entry><title>计算机系统规则怪谈</title><link href="https://luobochuanqi.github.io/posts/CSAPP/" rel="alternate" type="text/html" title="计算机系统规则怪谈" /><published>2026-03-23T04:00:00+00:00</published> <updated>2026-03-23T04:00:00+00:00</updated> <id>https://luobochuanqi.github.io/posts/CSAPP/</id> <content type="text/html" src="https://luobochuanqi.github.io/posts/CSAPP/" /> <author> <name>luobo</name> </author> <category term="Blogs" /> <category term="Learn" /> <summary>神秘小规则 C语言中，有符号数和无符号数运算时，有符号数会自动转换为无符号数</summary> </entry> </feed>
