1: //test_pause1.cpp
2: //A test driver for the Scobey::Pause() free function.
3: //Illustrates several uses of this function.
5: #include <iostream>
6: using namespace std;
8: #include "utilities.h"
9: using Scobey::Pause;
11: int main()
12: {
13: Pause(0, "\nTesting the Scobey::Pause() free function ..."
14: "\n\nIn each case, all output is produced by the "
15: "Pause() function itself.");
17: Pause(5, "This pause is indented 5 spaces.", 1);
19: Pause(3, "This pause is indented 3 spaces.", 2);
21: Pause(0, "This pause is not indented at all, and is not "
22: "numbered.\nIt will be followed by a \"default pause\".");
24: Pause();
26: Pause(0, "No more tests to perform."
27: "\nProgram will now terminate.");
28: }