For example:
#include <iostream>
using namespace std;
int main(){
int a;
+a;
}
I want the arithmetic plus " + " operator to be overloaded so that if it appears before one identifier ( in this case "a" ) , it will print " Hello ", without another identifer before the " + " operator , basically not like this : "identifierA+identifierB " , but like this " +identifierB " ( in this case "+a") and the result of the program compilation to be " Hello ". How is this possible?
Thanks in advance for help.