Mr U1's Library tagged → View Popular
第77章
-
qu.push(ndata);
-
j = (int)qu.size();
for (i = 0; i < j; i++) {
cout << qu.front() << endl;
qu.pop();
}
04 Sep 09
第30章
-
ユーザーが間違って2バイト文字の
「I」とか「O」を入力しても桁あふれが起こっておかしなことが
起こらないようにするため -
ユーザーが間違って2バイト文字の
「I」とか「O」を入力しても桁あふれが起こっておかしなことが
起こらないようにするため
第27章
-
class Kakeibo
{
int zankin;
public:
Kakeibo();
void Input(int);
void Output(int);
void Disp(void);
}; -
goto End;
第26章
-

-
ところで、プログラムの終了時に
書き込みをしたファイルはcloseしなくていいの?という
疑問がありませんか。じつは、オブジェクトの消滅時に
デストラクタが自動的にクローズしてくれるので
大丈夫です
第25章
-
int main(void)
{
int a = 10;
cout << "[そのまま表示]" << endl;
cout << a << endl;
cout << "[10進表示]" << endl;
cout << dec << a << endl;
cout << "[8進表示]" << endl;
cout << oct << a << endl;
cout << "[16進表示]" << endl;
cout << hex << a << endl;
return 0;
}
C++編(標準ライブラリ) 第31章 マニピュレータ
-
空白読み飛ばし機能をOFFにするために、
ios_base::unsetf()を呼び出しています。特定の機能をOFFにするときには、この関数に
目的の機能を表す引数を指定します。逆にONにするときには、ios_base::setf()を呼
び出します。 -
10進数と16進数のフラグが同時にONになっていると、
10進数の方が優先されてしまう - 1 more annotations...
第20章
-
void C::show(void)
{
cout << str;//ただ単にstrではclass Cのstr
cout << A::str;//スコープ解決演算子
cout << B::str;//スコープ解決演算子
return;
}
第18章
-
class CatClass
{
int legs;
char eye_color[32];
public:
CatClass();
CatClass(char *str);
friend void show(CatClass);
};
第16章
-
//Comp同士の加法の定義
Comp Comp::operator + (Comp x)
{
Comp z;
z.real = real + x.real;
z.img += img + x.img;
return z;
} -
//Comp + intの時の定義
Comp Comp::operator + (int i)
{
Comp z;
z.real = real + i;
z.img = img;
return z;
}
第13章
-
const Test x;
cout << "[main] x.a= " << x.a << endl;
//x.a = 20; エラーとなります。
//x.show(); 呼び出せません。
Selected Tags
Related Tags
Sponsored Links
Ads by Google
Top Contributors
Groups interested in learn
Related Lists on Diigo
-
Sites for Children
Items: 19 | Visits: 190
Created by: Ellen Paxton
-
History
Great history websites to l...
Items: 65 | Visits: 708
Created by: Mrs Brown
-
Keyboarding
Many sites to help learn to...
Items: 22 | Visits: 191
Created by: Mrs Brown
Highlighter, Sticky notes, Tagging, Groups and Network: integrated suite dramatically boosting research productivity. Learn more »
Join Diigo

