例外処理の一例 #include <iostream> #include <string> using namespace std; class Exception { string str; public: Exception() : str("Error0") {} Exception(const char* m) : str(m) {} void message() { cerr << str << endl; } void setmsg(const char* m) { str = m;</string></iostream>…
引用をストックしました
引用するにはまずログインしてください
引用をストックできませんでした。再度お試しください
限定公開記事のため引用できません。