关于_stscanf和_stprintf用法

例:

_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

 

posted on 2013-08-08 16:41  涛涛宝贝  阅读(1864)  评论(0编辑  收藏  举报

导航