CString filepath;
filepath = "C:\\Users\\Administrator\\source\\repos\\MFCApplication8\\Debug\\data.txt";
std::vector<float> m_data;
CStdioFile m_file(filepath, CFile::modeRead);
CString contents;
while (m_file.ReadString(contents))
{
double temp = 0.0;
//CString转换成double会有误差
temp = (float)_ttof(contents);
m_data.push_back(temp);
}