Quote Originally Posted by mickey View Post
I don't understand 'for': I need it to write a program that print its code.
Is it just for fun? For school? For any practical use? I'm just curious.

Is there a similar function that work as it?
try std::string and its sprintf method (I think it has one). Then you can redirect the result to cout.