can i do that in C++?

non of my books say anything about it.

thanks