Moのチーム?フェンウィックツリーまたは別のバー。加茂チームは、だけでなく、Moのチームタイトルセットを入れて、プレーの精神ああ:1.5時間
CF:2 Xiaoshi
ソフトウェアエンジニアリング:2時間
英語の単語:1時間
約半分の章13を読んで、C ++ 12の章を確認してください。https://www.cnblogs.com/yrz001030/p/12453076.html
3.5時間
#include "stdio.hの" の#include "string.hの" の#include "のiostream" の#include "アルゴリズム" 名前空間stdを使用。 クラスStringBad { プライベート: CHAR * strの。 lenはint型。 静的int型num_strings。 公共: StringBad(のconstのchar * s)は、 StringBad(); 〜StringBad(); 友達のstd :: ostreamに&演算子<<(StringBad&STのconstのstd :: ostreamに&OS、); }。 INT StringBad :: num_strings = 0; ///不能在类中初始化静态成员 StringBad :: StringBad(CONSTのchar * S) { LEN = STRLEN(S)。 [lenの+ 1] STR =新しいチャー。 strcpyの(STR、S)。 num_strings ++; coutの<< num_strings << " << "\"オブジェクトは" \ n個を作成しました。 } StringBad :: StringBad() { LEN = 4。 STR =新しい文字[4]。 strcpyの(STR、 "C ++")。 num_strings ++; coutの<< num_strings << ":\" "<< strが << "\"デフォルトオブジェクトは" \ n個を作成しました。 } StringBad ::〜StringBad() { COUT << "\" "<< strが<< "\"オブジェクト"は、削除されました。 - num_strings; coutの<< num_strings << "\ n個を残しました"。 [] STRを削除します。 } のstd :: ostreamに& 演算子<<(STD ::のostream&OS、StringBad&ST CONST) { OS << st.str。 OSを返します。 } 空callme1(StringBad&); 「初期互いに対象ます:\ n」; 裁判所未満<< "船員:" <<船員<<てendl; 空callme2(StringBad)。 メインINT() { STD :: ENDLを使用して、 StringBad headline1( "真夜中のセロリの茎"); StringBad headline2( "レタス獲物"); StringBadスポーツ(「ドルのためのほうれん草の葉Bow1」); 裁判所未満<< "headline1:" << headline1 <<てendl; 裁判所未満<< "headline2:" << headline2 <<てendl; 裁判所未満<< "スポーツ:" <<スポーツ<<てendl; callme1(headline1)。 裁判所未満<< "headline1:" << headline1 <<てendl; callme2(headline2)。 裁判所未満<< "headline2:" << headline2 <<てendl; 裁判所未満<<「別の初期化のオブジェクト:\ n」は ; StringBad船乗り=スポーツ。 裁判所未満<<「別に割り当て一つの物体ます:\ n」; StringBadは結び目。 結び目= headline1。 裁判所未満<< "結び目:" <<結び目<<てendl; 裁判所未満<<「メインの終わり()\ n」は、 0を返します。 } ボイドcallme1(StringBad&RSB) { COUTは<< "文字列が参照によって渡された:\ n"。 裁判所未満<< "\" "<< RSB << "\" \ n"は、 } ボイドcallme2(StringBad SB) { COUTは<< "文字列値渡した:\ n"。 裁判所未満<< "\" "<< SB << "\" \ n"は、 }
#include "stdio.hの" の#include "string.hの" の#include "アルゴリズム" 使用して名前空間STD; クラスブラス{ プライベート: 列挙{} MAX = 35; チャーのfullName [MAX]; ロングacctNum、 ダブルバランス; 公共: 真鍮(定数文字* S = "Nullbody"、ロンアン= -1、ダブルBAL = 0.0); 無効デポジット(ダブルAMT); 仮想無効撤回(ダブルAMT); 使用///仮想重要なキーワード:プログラム選択方法は、オブジェクトへの参照またはポインタの種類に応じて 使用されていない///、プログラムが参照またはポインタの種類の方法に従って選択されるであろう。(基本クラスと派生クラスのオーバーライドメソッド) ダブルバランス()constは、 仮想無効ViewAcct()constは、 仮想〜真鍮(){} }; /// PLUS Brasssアカウントクラス クラスBrassPlus: プライベート: ダブルmaxLoan; 倍速; ダブルowerBank; 公共: BrassPlus(CONSTのchar * S = "Nullbody"、長い= -1、二重BAL = 0.0、ダブルM 1 = 500、ダブルR = 0.10)。 BrassPlus(CONST真鍮&BA、ダブルM 1 = 500、ダブルR = 0.1)。 仮想空ViewAcct()constは、 仮想ボイド(ダブルAMT)を引き出します。 ボイドResetMax(ダブルM){maxLoan = M;} ボイドResetRate(ダブルR){率= R;} ボイドResetOwes(){owesBank = 0;} }。