#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");
}c++ 二进制转换
最新推荐文章于 2025-10-30 18:18:28 发布
1346

被折叠的 条评论
为什么被折叠?



