【初心者歓迎】C/C++室 Ver.32【環境依存OK】
■ このスレッドは過去ログ倉庫に格納されています
0155アフォルトの名無しさん
2006/10/21(土) 19:04:41#include <exception>
class nullpointerexception: public std::exception { };
int main(void){
try{
throw nullpointerexception();
}
catch(std::exception& e){
std::cerr << e.what() << std::endl;
}
return 0;
}
こんなん書いてみたんだけど、
no named exception thrown
ってでるよ。
■ このスレッドは過去ログ倉庫に格納されています