Michael wrote:
im new to this c++ programming
im making a game and need to workout how to do certain things like run
functions at a certain time after the program has run
eg after 10 seconds run the pen function
can anyone help please??
Apart from the standard facilities provided by the compiler (as
mentioned in the previous post), you may find other facilities provided
by the OS might be more interesting.
Unix has an "alarm" method that will cause a signal to be sent as well
as various other timer facilities.
If you don't need asynchronous timing, you mat be able to use the
"select" or "poll" system calls that allow you to both wait on input and
a timeout.
All of these facilities require quite a significant understanding of how
they interact with the C++ library - not somthing a beginner will find
trivial.