//sisaldab ka ülesannet 3-3 #include #include using namespace std; class TError { private: int iErrorCode; int iErrorLine; int iErrorParam; public: TError(void){iErrorCode=iErrorLine=iErrorParam=0;} TError(int EC, int EL, int EP) { iErrorCode=EC; iErrorLine=EL; iErrorParam=EP; } void setError(int EC, int EL, int EP) { iErrorCode=EC; iErrorLine=EL; iErrorParam=EP; } void showError(void){cout<<"Error no. "<>arv; if(!cin.good()){throw 99;} //to make sure that string was not inserted if(arv==0){ error1.setError(1,47,arv); throw error1; } if(arv<0){ error1.setError(2,51,arv); throw error1; } if(arv>100){ error1.setError(3,55,arv); throw error1; } cout<<"NORMAL EXECUTION: 100/"<