Blocking the standard error output of a programmatically run system command
I have this program in c++: #include <iostream> using namespace std; int main() { char buf[50]; cin.getline(buf,49); system(buf); return 0; } When I run and compile it and type for example "helo", my program prints the error: "helo" not found. Can I stop this error from being displayed? Is there any way to disable the error from...