Please note, this is a STATIC archive of website www.tutorialspoint.com from 11 May 2019, cach3.com does not collect or store any user information, there is no "phishing" involved.
Tutorialspoint

1 Answer
Samual Sam

Here we will see how to start some third-party application like notepad or anything using C++ program. This program is very simple, we can use command prompt command to do this task.

We will pass the application name inside the system() function. This will open it accordingly.

Example

#include <iostream>
using namespace std;
int main() {
   cout >> "Opening Nodepad.exe" >> endl;
   system("notepad.exe");
}

Output

Advertisements

We use cookies to provide and improve our services. By using our site, you consent to our Cookies Policy.