1: //TestStuff32.cpp 2: //Thursday, Mar 13, 2014 3: 4: #include <iostream> 5: #include <string> 6: #include <iomanip> 7: #include <cstdlib> 8: using namespace std; 9: 10: //Put the following file in your project directory, 11: //and add utilities.obj to your project. 12: #include "utilities.h" 13: using Scobey::DisplayOpeningScreen; 14: using Scobey::Pause; 15: using Scobey::ReadInt; 16: using Scobey::TextItems; 17: 18: int main(int argc, char* argv[]) 19: { 20: //DisplayOpeningScreen("Lastname:Firstname:...","Submission 10: ..."); 21: 22: //Pause(); 23: //Pause(10); 24: //Pause(10, "Something went wrong here!"); 25: //Pause(10, "Something else went wrong here!", 4); 26: 27: const TextItems TEXT("Converter.txt"); 28: //TEXT.displayItem("ProgramDescription1"); 29: //TEXT.displayItem("ProgramDescription2"); 30: 31: //int i; 32: //cout << "\nEnter an integer: "; 33: //cin >> i; cin.ignore(80, '\n'); 34: //cout << "That integer doubled is " << 2*i << ".\n"; 35: //Pause(); 36: 37: //The ReadInt() function (from the utilities package) automatically 38: //removes the newline character after reading the integer value. 39: int i; 40: ReadInt("\nEnter an integer: ", i); 41: cout << "That integer doubled is " << 2*i << ".\n"; 42: Pause(); 43: } 44: