You know, I've been playing with your wait function and it never would output the cout statement. However this works for me:
int f_wait(float SecondsToWait)
clock_t delay = SecondsToWait * CLOCKS_PER_SEC; //convert to clock tics
clock_t start = clock();
while(clock() - start < delay)
yup, i realized that what made it print was an <<endl after the cout<<"blah". but i haven't a clue how it works. i stole that function from c_coder (some brit on the board now and again).
i haven't yet studied the time.h library--i think that's atleast a month away yet.