#include "stdafx.h"
#include<iostream>
#include<bitset>
using namespace std;
int main()
{
int value = 255;
char cvalue[10];
_itoa_s(value, cvalue, 16);
cout << cvalue << endl;
cout << bitset<10>(value) << endl;
system("pause");
}
#include "stdafx.h"
#include<iostream>
#include<bitset>
using namespace std;
int main()
{
int value = 255;
char cvalue[10];
_itoa_s(value, cvalue, 16);
cout << cvalue << endl;
cout << bitset<10>(value) << endl;
system("pause");
}