哪位大神能帮我看下这个简单的小程序
头文件包括:
#include <fstream>
#include <stdio.h>
#include <string.h>
using namespace std;
代码:
CString str;
str.Format(" % .5E",1);
ofs<<str;
输出结果:
-5.48582E-132
如果代码改为:
CString str;
str.Format(" % .5E",1.0);
ofs<<str;
输出正确结果:
1.00000E+000