2020-07-10から1日間の記事一覧
たまに関数の頭にvirtualがついているのを見かけるので、それの内容。 仮想関数 cpp-lang.sevendays-study.com を参考にちょっと変更したコードを作成。 bird.h #ifndef __BIRD_H__ #define __BIRD_H__ #include <iostream> #include <string> using namespace std; class CBir</string></iostream>…
たまに関数の頭にvirtualがついているのを見かけるので、それの内容。 仮想関数 cpp-lang.sevendays-study.com を参考にちょっと変更したコードを作成。 bird.h #ifndef __BIRD_H__ #define __BIRD_H__ #include <iostream> #include <string> using namespace std; class CBir</string></iostream>…