I Need To Do Combination of Operator Overloading in my code.
For example :
When I write x[i] it returns a value, this much I know. What I need to know, is how to make the operator function so that if it's alone, it returns the value inside, and if it's followed by equal (x[i] = val) it sets the value of x[i].