Commit 0af184d 1 parent 4c60bc9 commit 0af184d Copy full SHA for 0af184d
File tree 5 files changed +7
-3
lines changed
5 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -283,8 +283,10 @@ <h4 id="_1">避免复读类型</h4>
283
283
< p > < img src ="../img/awesomeface.png " height ="30px " width ="auto " style ="margin: 0; border: none "/> 人类的本质是复读机。</ p >
284
284
</ blockquote >
285
285
< pre > < code class ="language-cpp "> QSlider *slider = new QSlider();
286
+ std::shared_ptr<Test> test = std::make_shared<Test>();
286
287
</ code > </ pre >
287
288
< pre > < code class ="language-cpp "> auto slider = new QSlider();
289
+ auto test = std::make_shared<Test>();
288
290
</ code > </ pre >
289
291
< p > TODO</ p >
290
292
< h4 id ="_2 "> 模板编程产生的超长类型名喧宾夺主</ h4 >
Original file line number Diff line number Diff line change @@ -292,7 +292,7 @@ <h2 id="_1">前言</h2>
292
292
< blockquote >
293
293
< p > < img src ="./img/bulb.png " height ="30px " width ="auto " style ="margin: 0; border: none "/> 本书还在持续更新中……要追番的话,可以在 < a href ="https://github.com/parallel101/cppguidebook "> GitHub</ a > 点一下右上角的 “Watch” 按钮,每当小彭老师提交新 commit,GitHub 会向你发送一封电子邮件,提醒你小彭老师更新了。</ p >
294
294
</ blockquote >
295
- < p > 更新时间:2024年12月27日 10:48:19 (UTC+08:00)</ p >
295
+ < p > 更新时间:2025年01月02日 15:20:32 (UTC+08:00)</ p >
296
296
< p > < a href ="https://parallel101.github.io/cppguidebook "> 在 GitHub Pages 浏览本书</ a > | < a href ="https://142857.red/book "> 在小彭老师自己维护的镜像上浏览本书</ a > </ p >
297
297
< h2 id ="_2 "> 格式约定</ h2 >
298
298
< blockquote >
Original file line number Diff line number Diff line change @@ -421,7 +421,7 @@ <h2 id="index-_1">前言</h2>
421
421
<blockquote>
422
422
<p><img src="../img/bulb.png" height="30px" width="auto" style="margin: 0; border: none"/> 本书还在持续更新中……要追番的话,可以在 <a href="https://github.com/parallel101/cppguidebook">GitHub</a> 点一下右上角的 “Watch” 按钮,每当小彭老师提交新 commit,GitHub 会向你发送一封电子邮件,提醒你小彭老师更新了。</p>
423
423
</blockquote>
424
- <p>更新时间:2024年12月27日 10:48:19 (UTC+08:00)</p>
424
+ <p>更新时间:2025年01月02日 15:20:32 (UTC+08:00)</p>
425
425
<p><a href="https://parallel101.github.io/cppguidebook">在 GitHub Pages 浏览本书</a> | <a href="https://142857.red/book">在小彭老师自己维护的镜像上浏览本书</a></p>
426
426
<h2 id="index-_2">格式约定</h2>
427
427
<blockquote>
@@ -947,8 +947,10 @@ <h4 id="auto-_1">避免复读类型</h4>
947
947
<p><img src="../img/awesomeface.png" height="30px" width="auto" style="margin: 0; border: none"/> 人类的本质是复读机。</p>
948
948
</blockquote>
949
949
<pre><code class="language-cpp">QSlider *slider = new QSlider();
950
+ std::shared_ptr<Test> test = std::make_shared<Test>();
950
951
</code></pre>
951
952
<pre><code class="language-cpp">auto slider = new QSlider();
953
+ auto test = std::make_shared<Test>();
952
954
</code></pre>
953
955
<p>TODO</p>
954
956
<h4 id="auto-_2">模板编程产生的超长类型名喧宾夺主</h4>
Load Diff Large diffs are not rendered by default.
You can’t perform that action at this time.
0 commit comments