Cpp クラス 仮想関数 新しいページはコチラ

提供: yonewiki
移動: 案内, 検索
(クラス 仮想関数)
(クラス 仮想関数)
84行: 84行:
  
 
<span style="color: #ffffff; background-color: #555555; padding: 0px 5px 0px 5px; display: inline-block;">cpp <span>(</span>メイン関数 InheritanceMain.cpp<span>)</span><!-- padding 上 右 下 左-->
 
<span style="color: #ffffff; background-color: #555555; padding: 0px 5px 0px 5px; display: inline-block;">cpp <span>(</span>メイン関数 InheritanceMain.cpp<span>)</span><!-- padding 上 右 下 左-->
<syntaxhighlight2 lang="cpp" line start=1000>
+
<syntaxhighlight2 lang="cpp" line start=201>
 
#include "pch.h"
 
#include "pch.h"
 
#include "BaseInheritance.h"
 
#include "BaseInheritance.h"
117行: 117行:
  
 
<span style="color: #ffffff; background-color: #555555; padding: 0px 5px 0px 5px; display: inline-block;">実行結果<!-- padding 上 右 下 左-->
 
<span style="color: #ffffff; background-color: #555555; padding: 0px 5px 0px 5px; display: inline-block;">実行結果<!-- padding 上 右 下 左-->
<syntaxhighlight2 lang="text" line start=1100>
+
<syntaxhighlight2 lang="text" line start=301>
 
Constructor:CBaseInheritance(int,int)
 
Constructor:CBaseInheritance(int,int)
 
BaseMoney=22800, option="none" total=22800
 
BaseMoney=22800, option="none" total=22800
130行: 130行:
  
 
<span style="color: #ffffff; background-color: #555555; padding: 0px 5px 0px 5px; display: inline-block;">cpp <span>(</span>メイン関数 InheritanceMain.cpp<span>)</span><!-- padding 上 右 下 左-->
 
<span style="color: #ffffff; background-color: #555555; padding: 0px 5px 0px 5px; display: inline-block;">cpp <span>(</span>メイン関数 InheritanceMain.cpp<span>)</span><!-- padding 上 右 下 左-->
<syntaxhighlight2 lang="cpp" line start=1000>
+
<syntaxhighlight2 lang="cpp" line start=401>
 
#include "pch.h"
 
#include "pch.h"
 
#include "BaseInheritance.h"
 
#include "BaseInheritance.h"
163行: 163行:
  
 
<span style="color: #ffffff; background-color: #555555; padding: 0px 5px 0px 5px; display: inline-block;">実行結果<!-- padding 上 右 下 左-->
 
<span style="color: #ffffff; background-color: #555555; padding: 0px 5px 0px 5px; display: inline-block;">実行結果<!-- padding 上 右 下 左-->
<syntaxhighlight2 lang="text" line start=1100>
+
<syntaxhighlight2 lang="text" line start=501>
 
Constructor:CBaseInheritance(int,int)
 
Constructor:CBaseInheritance(int,int)
 
Constructor:CDriveInheritance(int,int,int)
 
Constructor:CDriveInheritance(int,int,int)
180行: 180行:
  
 
<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 start=601>
 
#ifndef __BASEINHERITANCE_H_YONET__
 
#ifndef __BASEINHERITANCE_H_YONET__
 
#define __BASEINHERITANCE_H_YONET__
 
#define __BASEINHERITANCE_H_YONET__
197行: 197行:
 
     CBaseInheritance(int iArgBaseMoney, int iArgBaseMonth);
 
     CBaseInheritance(int iArgBaseMoney, int iArgBaseMonth);
 
     ~CBaseInheritance();
 
     ~CBaseInheritance();
     virtualvoid mfVirtual_vDispValue();
+
     virtual void mfVirtual_vDispValue();
 
     void mf_vBaseDispValue();
 
     void mf_vBaseDispValue();
 
};
 
};

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



個人用ツール
名前空間

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