Snippet. CPP. Execute a Program on Windows

This CPP snippet is useful to start an executable file on the Windows platform. It is a very simple example, that can be further tweaked according to task.

#include 
#include 
int main(){
    system( "start notepad.exe" );
    return 0;
}

Updated on: 19 Apr 2024