std::ifstream ifs; ifs.open("test.dat"); if (!ifs) { // オープンに失敗している }. openメンバ関数は戻り値が void型なので、エラーのチェックは、やはり「状態」 ...
確定! 回上一頁