16,551
社区成员
发帖
与我相关
我的任务
分享
CString strText(_T(""));
double num = 12.3456789;
strText.Format(_T("%lf"), num);
try
{
CStdioFile file;
file.Open(_T("F:\\11.txt"), CFile::modeCreate|CFile::modeWrite);
file.WriteString(strText);
file.Close();
}
catch (CFileException* e)
{
e->ReportError();
e->Delete();
}
TCHAR szBuffer[100];
_stprintf_s(szBuffer,_T("%f"),dblValue);