// Convert INT TO HEX
// By DreamVB 11:08 AM 29-Sep-16

#include <iostream>
#include <sstream>

using namespace std;
using std::cout;
using std::endl;

string IntToHex(int value){
	ostringstream os;
	//Convert int to hex and uppercase
	os << std::hex << std::uppercase << value;
	//Return hex string
	return os.str();
}

int main(int argc, char *argv[]){

	cout << "255 in hexidecimal is : " << IntToHex(255).c_str() << endl;
	cout << "10 in hexidecimal is  : " << IntToHex(10).c_str() << endl;

	system("pause");
	return 0;
}