//*************************************************************** // From the book "Win32 System Services: The Heart of Windows 98 // and Windows 2000" // by Marshall Brain // Published by Prentice Hall // // Copyright 1995, by Prentice Hall. // // This code demonstrates a simple console program that uses the // Win32 API. //*************************************************************** // textsamp.cpp #include #include void main(void) { int x; for (x=0; x<10; x++) { cout << "Hello" << endl; Beep(100, 50); Sleep(250); } }