+ 2
How do I access command prompt from a C++ program?
I'd need to access command prompt in C++ runtime. Like in Python you can access command prompt by: from os import system system("echo Hello World")
3 RĂ©ponses
+ 5
by using System:
#include <iostream>
using namespace std;
int main() {
system("echo 'hello world' ");
return 0;
}
+ 3
Bahhađ§ That easy!?
+ 2
yes, try it and see đ