Hex string convert to integer with stringstream

2016-09 睿丰德RFID软件系统集成商
睿丰德科技 专注RFID识别技术和条码识别技术与管理软件的集成项目。质量追溯系统、MES系统、金蝶与条码系统对接、用友与条码系统对接

#include <sstream>
#include <iostream>
int main() {
unsigned int x;
std::stringstream ss;
ss << std::hex << "FF";
ss >> x;
// output it as a signed type
std::cout << static_cast<int>(x) << std::endl;
}

RFID管理系统集成商 RFID中间件 条码系统中间层 物联网软件集成

给我们留言

电话咨询
邮件咨询
在线地图
微信15622149977