<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之旅 廣告
                我們已經見過五種值類型——布爾、字符、整型、浮點型和字符串,但只介紹了四種變量類型——**bool**、**char**、**int**和**double**。我們還沒有介紹將字符串保存到變量中和執行字符串操作的方法。 事實上,C++中有好幾種可以保存字符串的類型。 其中一個是C++語言中的基本類型,有時稱為“原生C字符串”。C字符串的語法有點兒丑陋,而且使用這種字符串要用到一些尚未介紹的概念,所以我們盡量避免使用它。 我們要使用的字符串類型是**apstring**,這是為計算機科學先修課程考試定制的類型【注1】。 不幸的是,完全避免C字符串是不可能的。本章有的地方我會就使用apstring代替C字符串可能遇到的問題給出一些警告。 你可能想知道**類**是什么。類的完整定義過幾章我才會給出,現在讀者可以認為類是函數的集合,其中函數定義了可以在類型上執行的操作。apstring類包含了所有可用于apstring變量的函數。 注1:為便于在書中討論大學先修課程考試所用的類,我必須加入這段話: “Inclusion of the C++ classes defined for use in the Advanced Placement Computer Science courses does not constitute endorsement of the other material in this textbook by the College Board, Educational Testing service, or the AP Computer Science Development Committee. The versions of the C++ classes defined for use in the AP Computer Science courses included in this textbook were accurate as of 20 July 1999\. Revisions to the classes may have been made since that time.”
                  <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>

                              哎呀哎呀视频在线观看