Cpp クラス 継承 新しいページはコチラ

提供: yonewiki
移動: 案内, 検索
(クラス 継承)
(クラス 継承)
22行: 22行:
 
<span style="color: #ffffff; background-color: #555555; padding: 0px 5px 0px 5px; display: inline-block;">cpp <span>(</span>BaseInheritance.h<span>)</span><!-- padding 上 右 下 左-->
 
<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__
+
#ifndef __BASEINHERITANCE_H_YONET__
#defint __BASEINHERITANCE_H_YONET__
+
#define __BASEINHERITANCE_H_YONET__
 
#if _MSC_VER > 1000
 
#if _MSC_VER > 1000
 
#pragma once
 
#pragma once
 
#endif
 
#endif
  
class CBaseInheritance{
+
class CBaseInheritance {
 
protected:
 
protected:
 
     int m_iBaseMoney;
 
     int m_iBaseMoney;
 
     int m_iBaseMonth;
 
     int m_iBaseMonth;
     void CBaseInheritance(int iArgBaseMoney, int iArgBaseMonth);
+
     CBaseInheritance(int iArgBaseMoney, int iArgBaseMonth);
     void ~CBaseInheritance();
+
     ~CBaseInheritance();
 
private:
 
private:
 
     void m_fvBaseDispValue();
 
     void m_fvBaseDispValue();
40行: 40行:
 
};
 
};
 
#endif
 
#endif
 +
 
</syntaxhighlight2>
 
</syntaxhighlight2>
  

2020年7月14日 (火) 00:00時点における版



個人用ツール
名前空間

変種
操作
案内
ツールボックス