<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>

                企業??AI智能體構建引擎,智能編排和調試,一鍵部署,支持知識庫和私有化部署方案 廣告
                # C++ 程序:查找字符的 ASCII 值 > 原文: [https://www.programiz.com/cpp-programming/examples/ASCII-value-character](https://www.programiz.com/cpp-programming/examples/ASCII-value-character) #### 在此示例中,您將學習在 C++ 中查找字符的 ASCII 值。 字符變量保存 ASCII 值(0 到 127 之間的整數),而不是 C 編程中的字符本身。 該值稱為 ASCII 值。 **例如**,ASCII 值`"A"`為 65。 這意味著,如果將`'A'`分配給字符變量,則 65 將存儲在該變量中,而不是`'A'`本身。 資源: [C++](http://en.cppreference.com/w/cpp/language/ascii "ASCII Chart") 中所有 127 個字符的 ASCII 圖表。 * * * ## 示例:在 C++ 中打印 ASCII 值 ```cpp #include <iostream> using namespace std; int main() { char c; cout << "Enter a character: "; cin >> c; cout << "ASCII Value of " << c << " is " << int(c); return 0; } ``` **輸出** ```cpp Enter a character: p ASCII Value of p is 112 ``` 當我們顯式打印`char`類型的整數值時,將打印對應的 ASCII 值。
                  <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>

                              哎呀哎呀视频在线观看