<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                ThinkChat2.0新版上線,更智能更精彩,支持會話、畫圖、視頻、閱讀、搜索等,送10W Token,即刻開啟你的AI之旅 廣告
                [TOC] ## 運行 <details> <summary>main.cpp</summary> ``` #include <iostream> using namespace std; int main() { cout << "Hello World"; // 輸出 Hello World return 0; } ``` </details> <br/> 運行 ``` $ g++ hello.cpp $ ./a.out Hello World ``` ## 新舊版本 ### 舊版本 ``` #include <iostream.h> //“.h”不能少 int main(void) { // Some Code } ``` ### 新版本 ``` #include <iostream> using namespace std; // 命名空間是必須的 int main() { // Some Code } ``` ## 函數等聲明 實現在 main前無需聲明 在main 后在需要在main前進行聲明 無需聲明 <details> <summary>main.cpp</summary> ``` #include <iostream> void demo() { std::cout<< "asd"; } int main() { demo(); return 0; } ``` 需要聲明 </details> <br/> <details> <summary>main.cpp</summary> ``` #include <iostream> // 聲明 void demo(); int main() { demo(); return 0; } void demo() { std::cout<< "asd"; } ``` </details> <br/>
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看