Is there any way how to run multiple instances of the same program in c++ ? Let's say for example you have a simple card game and you want to run it 3 times. Something like in GUI where you click on New Game button and it opens one instance of a game where you can play and then you click on New Game button again and it opens another instance (another window) of a game where you can play independently.
I'd like to know if it is possible to perform something like this in a console application ( like one window with more panels or something like that ?). Thank you for your replies.
Thank you guys for your replies, but it should be able to run it either on Linux or Windows. That's way i was asking about for example one windows with more panels if so. It's like ,it should be able to play up to for example 4 games simultaneously. If only one game is played, the graphics interface area will only contain this game (like one playing board). If more than one game is played, the graphical interface area will be divided into 4 tiles, each for one game (playing board). Unused tiles will not contain anything and the number of played games can be changed at run time. In GUIit shouldn't (guessing) be that hard, but I'm not still sure about CLI version
Just start 3 processes, for example:
for(int i = 0; i < 3; i++)
system("path_to_your_program");
It starts command in system command processor(bash/cmd.exe/etc). Or use system calls.