try {
throw "error\n";
}
catch(char * str) {
cout << str;
}
よくある例外のサンプルなんだが、
strが指す文字列ってスコープから外れてるから、
無効なポインタにならん?