what is redirection on c++?
what is redirection on c++?
Same as redirection in C, or any other command line programming language.
In other words, it's a feature of either your command line shell, or perhaps an API provided by your OS.
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
If at first you don't succeed, try writing your phone number on the exam paper.