I'm playing around with the C++ language and I got the idea of a program that executes a desired game. It simply gives you a list of games, which you can then choose which you want to run. (Already done so).
Now, I was going to make the program so when you picked a game it would start it automatically but then I hit the end of my knowledge.
The thing is, is there any command you know that would make the C++ program run another program? Example:
SO, at the bottom where I say "execute" (it is highlighted, and It's not the correct command), I want the program to run Unreal Tournament. IS THIS POSSIBLE? To make the program execute Unreal Tournament? IS C++ BUILT TO BE ABLE TO RUN OTHER PROGRAMS?
HELP HIGHLY APPRICIATED. THANKS!
Now, I was going to make the program so when you picked a game it would start it automatically but then I hit the end of my knowledge.
The thing is, is there any command you know that would make the C++ program run another program? Example:
Code:
main()
{
int selection // Tells the program to store information about which game is picked
cout<<"Select a game to start: \n"; // cout is the command to display messages
cout<<"\n";
cout<<"1. Unreal Tournament\n";
cout<<"2. UT2K4\n";
cout<<"3. UT3
cout<<"4. Unreal\n";
cin>> selection; //Tells the program to store the number 1, 2, 3 or 4 to its memory
if ( selection == 1 ){
[b]execute "C:\UnrealTournament\System\UnrealTournament.exe";[/b]
}
SO, at the bottom where I say "execute" (it is highlighted, and It's not the correct command), I want the program to run Unreal Tournament. IS THIS POSSIBLE? To make the program execute Unreal Tournament? IS C++ BUILT TO BE ABLE TO RUN OTHER PROGRAMS?
HELP HIGHLY APPRICIATED. THANKS!