例:

_stscanf

wstring wstr("0.54855");

float  m_float;

_stscanf(wstr.c_str(),L"%f",&m_float );

参考sscanf

 

_stprintf

wstring wstr;

_stprintf(wstr.c_str(),L"%f",0.145454);

参考ssprintf

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-02-12
  • 2021-09-05
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-08-06
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案