Cpp クラス 継承 新しいページはコチラ
提供: yonewiki
(→クラス 継承) |
(→クラス 継承) |
||
20行: | 20行: | ||
+ | <span style="color: #ffffff; background-color: #555555; padding: 0px 5px 0px 5px; display: inline-block;">cpp <span>(</span>BaseInheritance.h<span>)</span><!-- padding 上 右 下 左--> | ||
<syntaxhighlight2 lang="cpp" line> | <syntaxhighlight2 lang="cpp" line> | ||
#ifndif __BASEINHERITANCE_H_YONET__ | #ifndif __BASEINHERITANCE_H_YONET__ | ||
39行: | 40行: | ||
#endif | #endif | ||
</syntaxhighlight2> | </syntaxhighlight2> | ||
− | + | <span style="color: #ffffff; background-color: #555555; padding: 0px 5px 0px 5px; display: inline-block;">cpp <span>(</span>BaseInheritance.cpp<span>)</span><!-- padding 上 右 下 左--> | |
<syntaxhighlight2 lang="cpp" line> | <syntaxhighlight2 lang="cpp" line> | ||
#include "stdafx.h" | #include "stdafx.h" | ||
62行: | 63行: | ||
上記のクラスを呼び出すだけで、掛け算をした結果が得られます。 | 上記のクラスを呼び出すだけで、掛け算をした結果が得られます。 | ||
+ | <span style="color: #ffffff; background-color: #555555; padding: 0px 5px 0px 5px; display: inline-block;">cpp <span>(</span>BaseInheritanceMain.cpp<span>)</span><!-- padding 上 右 下 左--> | ||
<syntaxhighlight2 lang="cpp" line> | <syntaxhighlight2 lang="cpp" line> | ||
#include "stdafx.h" | #include "stdafx.h" |