system cpp 1

system cpp

system("echo hi");

Here is what the above code is Doing:
1. We’re importing the os module, which contains the system function.
2. We’re calling the system function, which takes a string as an argument.
3. The string we’re passing to the system function is the command we want to run.

Similar Posts