2018-09-06から1日間の記事一覧
何度も調べているので,もう自分でまとめた. 参考資料 http://www.yunabe.jp/docs/cpp_virtual_destructor.html virtual に関する実験 #include "bits/stdc++.h" using namespace std; struct A{ int x; A(int _x = 1):x(_x){ cout << "construct A : " << …
何度も調べているので,もう自分でまとめた. 参考資料 http://www.yunabe.jp/docs/cpp_virtual_destructor.html virtual に関する実験 #include "bits/stdc++.h" using namespace std; struct A{ int x; A(int _x = 1):x(_x){ cout << "construct A : " << …