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

                合規國際互聯網加速 OSASE為企業客戶提供高速穩定SD-WAN國際加速解決方案。 廣告
                ``` #include <iostream> #include <stdlib.h> using namespace std; /** * 數據的封裝 * 定義一個Student類,含有如下信息: * 1.姓名:name * 2.性別:gender * 3.學分(只讀):score * 4.學習:study * @return */ class Student{ public: //設置名字 void setName(string _name){ str_name=_name; } //獲取名字 string getName(){ return str_name; } //設置性別 void setGender(string _gender){ str_gender=_gender; } //獲取性別 string getGender(){ return str_gender; } //獲取分數 int getScore(){ return int_score; } //初始化分數 void initScore(){ int_score=0; } void study(int _score){ int_score+=_score;//分數相加 } private: string str_name; string str_gender; int int_score; }; int main(){ Student stu; stu.initScore(); stu.setName("zhangsan"); stu.setGender("女"); stu.study(50); stu.study(40); cout<<stu.getName()<<endl; cout<<stu.getGender()<<endl; cout<<stu.getScore()<<endl; return 0; } ```
                  <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>

                              哎呀哎呀视频在线观看