+ 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 Antworten
+ 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 😃