Lecture
This is a '()' operation. It is a binary operation. The first operand is usually a class object, the second is a parameter list.
Example.
class matriza // two-dimensional array of real numbers
{
...
public:
...
double operator () (int, int); // access to matrix elements by index
};
double matriza :: operator () (int i, int j)
{...}
void main ()
{class matriza a;
double k;...
k: = a (5,6);
...
}
Comments
To leave a comment
C ++ (C plus plus)
Terms: C ++ (C plus plus)