Open something with System
Ok, this is for my science project:
D.O.G.M.A. ROBOT
Well, basically I want to be able to switch between keyboard and voice. I created two separate C++ CMD programs to do so. In total I have 3:
MAIN - Sets everything, checks files, preps the ROBOT
Voice - Self Explanatory, allows me to use ROBOT with voice
Keyboard- Self Explanatory, allows me to use ROBOT with keyboard
From MAIN I open Voice with system();
How can I go back to the function I was in after I close Voice?
I don't know how system() runs programs. But running programs is usually a host process ( usually the kernel ) that passes execution over to the program you're opening ( calls main function ). So a simple return statement should bring you back to your caller ( MAIN in your case ).
But I don't know how the fk system() works so Idk, but its worth a shot.