Guest User

Untitled

a guest
Apr 28th, 2016
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.33 KB | None | 0 0
  1.     class MyClass {        
  2.         // various stuff including ...
  3.         double *myarray;
  4.  
  5.     public:
  6.         double &operator() (const int n){
  7.             return myarray[n];
  8.         }
  9.         double operator() (const int n) const{
  10.             return myarray[n];
  11.         }
  12.        
  13.         // various other stuff ...
  14.     };
Advertisement
Add Comment
Please, Sign In to add comment