例:

_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

 

相关文章: