Can I overload the >> operator so that it will work on the next call:
int a = 123; char* cstr; a >> cstr; In fact, this operator must "write" an in-value value into an array of characters (say, using the itoa() function inside an overloaded operator). In other words, I want the operator >> left to have, for example, an int , and not an istream stream. If such an implementation is possible, then tell the syntax overload. If not, explain why it is impossible. Thank.