I would like to make cout will always print additional string(above and under) whenever I call it. It is actually weird to me cause I use in Java and C# primaly . EDIT: Maybe we can define other value for "y" string or something like that?
Example
code:
#include <iostream>
int main(){std::cout<<"y\n";}
result(printed):
x
y
z
I would not want to change int main()
method just maybe overriding the <<
for the string type?
OR MAYBE make cout invoke additional method?