Guest User

ClasseEccezioneOutOfRange.h

a guest
Feb 6th, 2013
42
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.33 KB | None | 0 0
  1. #include <iostream>
  2. #include <string>
  3.  
  4. using namespace std;
  5.  
  6. class EccezioneOutOfRange {
  7.     private:
  8.         string messaggio;
  9.     public:
  10.         EccezioneOutOfRange() : messaggio("il valore dell'indice specificato non appartiene all'intervallo [0,Nelem]!") {}
  11.         const string what() const {return messaggio;}  
  12. };
Advertisement
Add Comment
Please, Sign In to add comment