is there a way I can make my own std::cout function that actually prints something to the console window. I just learned how to use namespaces and I got the idea to just make my own std::cout but with a different namespace. I know it would be pointless but FOR SCIENCE!!!
yes, you can. if you want to do it way down deep you will need to call the operating system itself -- possibly using assembly language inside your C++.
but say you wanted to use prinf to make a new cout … you can do this. It may be possible to open the console as if it were a FILE* or even a c++ object, not sure. Stdin/stdout itself really is a C FILE*.