Does anyone know how to create another line of execution? what I mean by that is given a movie trailer that pauses when the user presses <p>. To do that, the closest method to the actually solution would be something like this:
but that is obviously wrong. Does anyone know how to set up another execution path so that the movie or whatever executes until the moment the user presses a key or some external event happens?Code:movie.play(); cin>>ch; if(ch=='p') movie.stop();