evetsleep

Discussion 6 Week 2 - Main.cpp

Nov 16th, 2012
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.43 KB | None | 0 0
  1. #include <iostream>
  2. #include <string>
  3. #include "ConvertByte.h"
  4.  
  5. using namespace std;
  6.  
  7. int main ()
  8. {
  9.     //Create byteObject
  10.     ConvertByte byteObject;
  11.  
  12.     /*
  13.     Read in the number of megabytes to convert
  14.     then convert it to bytes and then print
  15.     the result to screen.
  16.     */
  17.     byteObject.read();
  18.     byteObject.convert_to_byte();
  19.     byteObject.print();
  20.  
  21.     //Use a destructor to destroy the object.
  22.     byteObject.~ConvertByte();
  23.  
  24.     return 0;
  25. }
Advertisement
Add Comment
Please, Sign In to add comment