//StarTrek computer sounds (Voyager era) #include //assertions #include //cout & cin #include //for beep(); #include //for system(); stuff #include //needed for Wait(); #define NUMBEEPS 7 //This is here so I don't forget to change it using namespace std; void Wait( unsigned int msecs ) { clock_t goal = msecs + clock(); while( goal > clock() ); } void DoNumBeep( int beepnum ) { switch( beepnum ) { case 1: //Acknowledgement cout<<"Voice Acknowledgement"<>beepnum; if( beepnum == 0 ) exit( 0 ); //Idiot proofing, stops newbs from causing an infinite loop assert( beepnum > -1 && beepnum < 9001 ); //IT'S OVER NINE-THOUSAAAAAAND!! DoNumBeep( beepnum ); Wait( 500 ); system( "cls" ); goto loopme; return 0; }