Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <string>
- #include "ConvertByte.h"
- using namespace std;
- int main ()
- {
- //Create byteObject
- ConvertByte byteObject;
- /*
- Read in the number of megabytes to convert
- then convert it to bytes and then print
- the result to screen.
- */
- byteObject.read();
- byteObject.convert_to_byte();
- byteObject.print();
- //Use a destructor to destroy the object.
- byteObject.~ConvertByte();
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment