Skip to content

Commit 7c08221

Browse files
committed
deploy: 168e468
1 parent 4440aea commit 7c08221

File tree

4 files changed

+13
-13
lines changed

4 files changed

+13
-13
lines changed

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@ <h2 id="_1">前言</h2>
288288
<blockquote>
289289
<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>
290290
</blockquote>
291-
<p>更新时间:2024年09月06日 01:27:32 (UTC+08:00)</p>
291+
<p>更新时间:2024年09月06日 01:28:24 (UTC+08:00)</p>
292292
<p><a href="https://parallel101.github.io/cppguidebook">在 GitHub Pages 浏览本书</a> | <a href="https://142857.red/book">在小彭老师自己维护的镜像上浏览本书</a></p>
293293
<h2 id="_2">格式约定</h2>
294294
<blockquote>

platform/index.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -370,15 +370,15 @@ <h3 id="gcc">GCC</h3>
370370
</blockquote>
371371
<h3 id="clang">Clang</h3>
372372
<p>Windows 上:</p>
373-
<pre><code class="language-bash">clang++.exe -c main.cpp -o main.exe
373+
<pre><code class="language-bash">clang++.exe main.cpp -o main.exe
374374
</code></pre>
375375
<p>Linux / MacOS 上:</p>
376-
<pre><code class="language-bash">clang++ -c main.cpp -o main
376+
<pre><code class="language-bash">clang++ main.cpp -o main
377377
</code></pre>
378378
<h2 id="_5">编译器选项</h2>
379379
<p>编译器选项是用来控制编译器的行为的。不同的编译器有不同的选项,语法有微妙的不同,但大致功效相同。</p>
380380
<p>例如当我们说“编译这个源码时,我用了 GCC 编译器,<code>-O3</code><code>-std=c++20</code> 选项”,说的就是把这些选项加到了 <code>g++</code> 的命令行参数中:</p>
381-
<pre><code class="language-bash">g++ -O3 -std=c++20 -c main.cpp -o main
381+
<pre><code class="language-bash">g++ -O3 -std=c++20 main.cpp -o main
382382
</code></pre>
383383
<p>其中 Clang 和 GCC 的编译器选项有很大交集。而 MSVC 基本自成一派。</p>
384384
<p>Clang 和 GCC 的选项都是 <code>-xxx</code> 的形式,MSVC 的选项是 <code>/xxx</code> 的形式。</p>
@@ -389,10 +389,10 @@ <h3 id="c">C++ 标准</h3>
389389
<p>MSVC:<code>/std:c++98</code><code>/std:c++11</code><code>/std:c++14</code><code>/std:c++17</code><code>/std:c++20</code><code>/std:c++latest</code></p>
390390
<p>例如要编译一个 C++20 源码文件,分别用 GCC、Clang、MSVC:</p>
391391
<p>GCC(Linux):</p>
392-
<pre><code class="language-bash">g++ -std=c++20 -c main.cpp -o main
392+
<pre><code class="language-bash">g++ -std=c++20 main.cpp -o main
393393
</code></pre>
394394
<p>Clang(Linux):</p>
395-
<pre><code class="language-bash">clang++ -std=c++20 -c main.cpp -o main
395+
<pre><code class="language-bash">clang++ -std=c++20 main.cpp -o main
396396
</code></pre>
397397
<p>MSVC(Windows):</p>
398398
<pre><code class="language-bash">cl.exe /std:c++20 /c main.cpp

print_page/index.html

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -413,7 +413,7 @@ <h2 id="index-_1">前言</h2>
413413
<blockquote>
414414
<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>
415415
</blockquote>
416-
<p>更新时间:2024年09月06日 01:27:32 (UTC+08:00)</p>
416+
<p>更新时间:2024年09月06日 01:28:24 (UTC+08:00)</p>
417417
<p><a href="https://parallel101.github.io/cppguidebook">在 GitHub Pages 浏览本书</a> | <a href="https://142857.red/book">在小彭老师自己维护的镜像上浏览本书</a></p>
418418
<h2 id="index-_2">格式约定</h2>
419419
<blockquote>
@@ -769,15 +769,15 @@ <h3 id="platform-gcc">GCC</h3>
769769
</blockquote>
770770
<h3 id="platform-clang">Clang</h3>
771771
<p>Windows 上:</p>
772-
<pre><code class="language-bash">clang++.exe -c main.cpp -o main.exe
772+
<pre><code class="language-bash">clang++.exe main.cpp -o main.exe
773773
</code></pre>
774774
<p>Linux / MacOS 上:</p>
775-
<pre><code class="language-bash">clang++ -c main.cpp -o main
775+
<pre><code class="language-bash">clang++ main.cpp -o main
776776
</code></pre>
777777
<h2 id="platform-_5">编译器选项</h2>
778778
<p>编译器选项是用来控制编译器的行为的。不同的编译器有不同的选项,语法有微妙的不同,但大致功效相同。</p>
779779
<p>例如当我们说“编译这个源码时,我用了 GCC 编译器,<code>-O3</code> 和 <code>-std=c++20</code> 选项”,说的就是把这些选项加到了 <code>g++</code> 的命令行参数中:</p>
780-
<pre><code class="language-bash">g++ -O3 -std=c++20 -c main.cpp -o main
780+
<pre><code class="language-bash">g++ -O3 -std=c++20 main.cpp -o main
781781
</code></pre>
782782
<p>其中 Clang 和 GCC 的编译器选项有很大交集。而 MSVC 基本自成一派。</p>
783783
<p>Clang 和 GCC 的选项都是 <code>-xxx</code> 的形式,MSVC 的选项是 <code>/xxx</code> 的形式。</p>
@@ -788,10 +788,10 @@ <h3 id="platform-c">C++ 标准</h3>
788788
<p>MSVC:<code>/std:c++98</code>、<code>/std:c++11</code>、<code>/std:c++14</code>、<code>/std:c++17</code>、<code>/std:c++20</code>、<code>/std:c++latest</code></p>
789789
<p>例如要编译一个 C++20 源码文件,分别用 GCC、Clang、MSVC:</p>
790790
<p>GCC(Linux):</p>
791-
<pre><code class="language-bash">g++ -std=c++20 -c main.cpp -o main
791+
<pre><code class="language-bash">g++ -std=c++20 main.cpp -o main
792792
</code></pre>
793793
<p>Clang(Linux):</p>
794-
<pre><code class="language-bash">clang++ -std=c++20 -c main.cpp -o main
794+
<pre><code class="language-bash">clang++ -std=c++20 main.cpp -o main
795795
</code></pre>
796796
<p>MSVC(Windows):</p>
797797
<pre><code class="language-bash">cl.exe /std:c++20 /c main.cpp

search/search_index.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)