diff options
| author | Tyler Taormina <[email protected]> | 2021-11-11 21:44:24 -0800 |
|---|---|---|
| committer | Tyler Taormina <[email protected]> | 2021-11-11 21:44:24 -0800 |
| commit | c2a9dea6d7e686389ac022756ed0a926a550743f (patch) | |
| tree | 8e40be9a64b72c5543cd6060f0c808eab6d20c24 | |
| parent | Problem 1 complete. (diff) | |
| download | cst116-lab7-till-t-c2a9dea6d7e686389ac022756ed0a926a550743f.tar.xz cst116-lab7-till-t-c2a9dea6d7e686389ac022756ed0a926a550743f.zip | |
Updates
| -rw-r--r-- | num1.cpp | 12 |
1 files changed, 7 insertions, 5 deletions
@@ -44,15 +44,17 @@ void GatherStrings() getline (cin, usr_data); array[limit] = usr_data; limit += 1; - cout << "\n\nEnter 1 to add another string to the data base." << endl; + cout << "\n\nEnter [1] to add another string to the data base." << endl; cout << "OR" << endl; - cout << "Enter 0 to stop and see all the entries we have so far: "; + cout << "Enter [0] to stop and see all the entries we have so far: "; cin >> flag; ClearBuffer(); } - - cout << "\n\nThis is what we have in our database so far...\n\n" << endl; - + + cout << "==================================================================\n"; + cout << "This is what we have in our database so far..." << endl; + cout << "==================================================================\n"; + while (i < limit) { cout << array[i] << endl; |