Hello every one
Is it posible to operate two programs within same program??
for example I have a program of competition and I want to add counter of time for answering and the program should allow the user to select answer when the counter is operated.
I can't comment on how difficult muti-threading is in C++, as it's not something I've tried, but in Delphi (pascal based) it's certainly something you do with care, lots of thinking and planning before writing code!
The way I see it you have two choices, the threading option as suggested by Faldrax which is effectively multiple programs running within a single process but sharing resources like memory, or two separate programs using some form of interprocess communication. The options on this second one depend on the platform, Unix provides different options to Microsoft for example, (dboyce's list appears to be Microsoft) although there are some that are common. Shared memory, pipes and sockets for example are common to both Windows and Unix.