/* Lecture Code 0.1
 *
 * The hex, dec, and oct stream manipulators.
 */
 
#include <iostream>
#include <iomanip>	// Necessary for most stream manipulators.
#include <string>	// These two lines replace #include "genlib.h"
using namespace std;

int main()
{
	int myInteger;
	
	cout << "Please enter a base-16 integer: ";
	cin >> hex >> myInteger;
	
	cout << "That number, in base-16, is: " << hex << myInteger << endl;
	cout << "That number, in base-10, is: " << dec << myInteger << endl;
	cout << "That number, in base-08, is: " << oct << myInteger << endl;
	
	return 0;
}