Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #ifndef CONVERTBYTE_H
- #define CONVERTBYTE_H
- class ConvertByte
- {
- public:
- //Defining the default constructor
- ConvertByte();
- //Prompts the user to enter a value in MB.
- void read();
- //Mutator which converts the value entered from MB
- //into bytes.
- void convert_to_byte();
- //Accessor which outputs the value that is stored
- //in byte_result.
- void print();
- //Destructor used to remove an object that was
- //created.
- ~ConvertByte();
- private:
- unsigned long int mb_private;
- unsigned long int byte_result;
- unsigned long int MB_in_bytes;
- };
- #endif
Advertisement
Add Comment
Please, Sign In to add comment