|
// Exercise 2.11
// Create an application that prints a message and sounds an alarm.
#include <iostream> // required to perform C++ stream I/O
using namespace std; // for accessing C++ Standard Library members
// function main begins program execution
int main() { cout << "\a\a\aWarning:You have been inactive for over 30 minutes \nYou will be logged out in one minute\n"; system("pause"); // 暂停返回
return 0; // indicate that program ended successfully
}
|