<output id="qn6qe"></output>

    1. <output id="qn6qe"><tt id="qn6qe"></tt></output>
    2. <strike id="qn6qe"></strike>

      亚洲 日本 欧洲 欧美 视频,日韩中文字幕有码av,一本一道av中文字幕无码,国产线播放免费人成视频播放,人妻少妇偷人无码视频,日夜啪啪一区二区三区,国产尤物精品自在拍视频首页,久热这里只有精品12

      數組,指針與現代c++標準

      #include <iostream>
      #include <algorithm>
      #include <math.h>
      #include <string>
      
      using namespace std;
      
      class Info
      {
      
      public:
          Info(string nickname, string contact, string city, int n)
              : nickname{nickname}, contact{contact}, city{city}, n{n} { cnt += n; }
      
          void print()
          {
              cout << "昵稱: " << nickname << endl
                   << "聯系方式: " << contact << endl
                   << "所在城市: " << city << endl
                   << "預定人數: " << n << endl
                   << endl;
          }
      
          static int getResult()
          {
              return cnt;
          }
      
          static const int capacity;
          
      
      private:
          string nickname;
          string contact;
          string city;
          int n;
          static int cnt;
      };
      
      int Info::cnt = 0;
      const int Info::capacity = 100;
      

        

      #include <iostream>
      #include <algorithm>
      #include <vector>
      #include <iomanip>
      #include "Info.hpp"
      
      using namespace std;
      
      vector<Info> audience_info_list;
      string nickname;
      string contact;
      string city;
      int n;
      
      int main()
      {
      
          cout << "錄入信息:" << endl;
          cout << "昵稱" << "       ";
          cout << "聯系方式(郵箱/手機號)" << "      ";
          cout << "所在城市" << "       ";
          cout << "預定參加人數" << endl;
      
          while (cin >> nickname)
          {
              cin >> contact >> city >> n;
              bool flag = true;
      
              while (n + Info::getResult() > Info::capacity)
              {
                  cout << "對不起,只剩" << Info::capacity - Info::getResult() << "個位置" << endl;
                  cout << "1.輸入u,更新(updata)預訂信息" << endl;
                  cout << "2.輸入q,退出預定" << endl;
                  cout << "你的選擇:";
      
                  char str;
                  cin >> str;
      
                  if (str == 'q')
                  {
                      flag = false;
                      break;
                  }
                  else
                  {
                      cout << "更新預定人數:";
                      cin >> n;
                  }
              }
      
              if (flag)
              {
                  audience_info_list.push_back(Info(nickname, contact, city, n));
                  cout << "預定成功 ~ " << endl;
              }
          }
      
          cout << "截止目前,一共有" << Info::getResult() << "位聽眾預定參加。預定聽眾信息如下:" << endl;
      
          for (auto &now : audience_info_list)
          {
              now.print();
          }
      
          return 0;
      }
      

        

      #include <bits/stdc++.h>
      
      using namespace std;
      
      class TextCoder
      {
      
      public:
          TextCoder(string a = "") : text{a} {}
      
          string get_ciphertext()
          {
              encoder_kaisa();
              return text;
          }
      
          string get_deciphertext()
          {
              decoder_kaisa();
              return text;
          }
      
      private:
          string text;
      
          void encoder_kaisa(int position = 5)
          {
              for (auto &ch : text)
              {
                  char str;
                  if ('a' <= ch && ch <= 'z')
                      str = 'a';
                  else if ('A' <= ch && ch <= 'Z')
                      str = 'A';
                  else
                      continue;
                  ch = str + (ch - str + position + 52) % 26;
              }
          }
      
          void decoder_kaisa()
          {
              encoder_kaisa(-5);
          }
      };
      

        

      #include "textcoder.hpp"
      #include <iostream>
      #include <string>
      void test()
      {
          using namespace std;
          string text, encoded_text, decoded_text;
          cout << "輸入英文文本: ";
          while (getline(cin, text))
          {
              encoded_text = TextCoder(text).get_ciphertext(); // 這里使用的是臨時無名對象
              cout << "加密后英文文本:\t" << encoded_text << endl;
              decoded_text = TextCoder(encoded_text).get_deciphertext(); // 這里使用的是臨時無名對象
              cout << "解密后英文文本:\t" << decoded_text << endl;
              cout << "\n輸入英文文本: ";
          }
      }
      int main()
      {
          test();
      }
      

        

       

      posted on 2022-10-23 00:47  cflxl  閱讀(19)  評論(0)    收藏  舉報

      導航

      主站蜘蛛池模板: 国产日韩一区二区四季| 福利一区二区在线播放| 亚洲国产成人无码电影| 日本中文字幕亚洲乱码| 成人中文在线| 影音先锋啪啪av资源网站| 国产一区二区三区内射高清| 久久精品国产亚洲不AV麻豆| 自拍偷自拍亚洲精品熟妇人 | 野花韩国高清电影| 久久精品国产亚洲AV麻| 国产成人无码免费视频在线| 四虎av永久在线精品免费观看| 国产熟妇另类久久久久久| 久久这里只有精品好国产| 中文字幕久久久久人妻| 国产美女久久久亚洲综合 | 边摸边吃奶边做爽动态| 3d全彩无码啪啪本子全彩| 99久久亚洲综合精品成人网| 国产亚洲精品久久久久久久软件 | 女同精品女同系列在线观看| 国产一级av在线播放| 美女裸体黄网站18禁止免费下载| 在线日韩日本国产亚洲| 亚洲国产另类久久久精品黑人| 亚洲一线二线三线品牌精华液久久久 | 久久AV中文综合一区二区| 尹人香蕉久久99天天拍| 凤山市| 日韩一区在线中文字幕| 国产超碰无码最新上传| 日本真人添下面视频免费| 玖玖在线精品免费视频| 日本熟妇浓毛hdsex| 亚洲精品国男人在线视频| 国产午夜精品理论大片| 国产乱人伦偷精品视频下| 国产稚嫩高中生呻吟激情在线视频| 亚洲精品www久久久久久| 99久久国产综合精品色|