Skip to content

wheatmind

wheatmind

搜索

2024年八月
一 二 三 四 五 六 日
     
 1234
567891011
12131415161718
19202122232425
262728293031  

近期文章

  • error LNK2038: mismatch detected for ‘RuntimeLibrary’: value ‘MT_StaticRelease’ doesn’t match value ‘MDd_DynamicDebug
  • error C2065: ‘_lpa’: undeclared identifier
  • C2733: ‘abs’: you cannot overload a function with ‘extern “C”‘ linkage
  • unresolved external symbol _IID_IADs
  • std::cout 输出hex不对

文章归档

  • 2024年八月
  • VerySource首页
  • 技术论坛
  • 博客
  • 在线工具
  • 在线手册
  • 登录
  • 注册

日期:2024年8月21日

std::cout 输出hex不对

std::cout << std::hex << std::setiosflags(std::ios::uppercase) << std::setfill(‘0’) << std::setw(2);
std::cout << (int)Val<< std::endl;

本文为原创文章,转载请注明出处!

Posted on 2024-8-212024-8-21Categories C/C++Tags c++, coutLeave a comment on std::cout 输出hex不对
wheatmind | host by VerySource Blog | 作者:wheatmind