profession

写EXCEL(csv 可以用EXECEL打开,逗号分列隔符)

FILE *file = NULL;
    char path[]="D:\\Data\\Pos.csv";
    
    CTime m_tDateTime;   
    m_tDateTime = m_tDateTime.GetCurrentTime();
    CString strTime = m_tDateTime.Format("%Y-%m-%d %H:%M:%S");

    if (NULL != (file=fopen(path,"a")))
    {
        fprintf(file,"%.3f,%.3f,%s",x,y,bexg?"\n":"");
    }

    if(file != NULL)
        fclose(file);

 

分类:

技术点:

相关文章:

  • 2021-08-31
  • 2022-01-30
  • 2021-11-21
  • 2022-02-04
  • 2022-12-23
  • 2022-12-23
  • 2021-11-15
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-07-09
  • 2021-09-14
  • 2021-08-20
  • 2021-11-19
相关资源
相似解决方案