【初心者歓迎】C/C++室 Ver.24【環境依存OK】
■ このスレッドは過去ログ倉庫に格納されています
0192デフォルトの名無しさん
2006/01/09(月) 13:47:23ありがとうございます。
でも、実際はこんな感じなんです
class Foo {
private: construct_(int a, PFUNC pfunc, char* ini_file);
public:
Foo(int a=DEF_VAL, PFUNC pfunc=DEF_FUNC, char* ini_file=DEF_INI_FILE) { construct_(a, pfunc, ini_file); }
Foo(PFUNC pfunc=DEF_FUNC) { construct_(DEF_VAL, pfunc, DEF_INI_FILE); }
Foo(char* ini_file) { construct_(DEF_VAL, DEF_FUNC, ini_file); }
};
なので、コンストラクタとは別に実コンストラクタを持つ方がいいかなぁと。
■ このスレッドは過去ログ倉庫に格納されています