C++Builder相談室 Part5
■ このスレッドは過去ログ倉庫に格納されています
0178デフォルトの名無しさん
NGNG例えば
#include <iostream>
#include <stdexcept>
void func() throw(std::exception)
{
throw std::runtime_error("error");
}
int main()
{
try {
func();
}
catch (const std::exception& e) {
std::cout << e.what() << std::endl;
}
}
■ このスレッドは過去ログ倉庫に格納されています