我的程序哪里不对
我要做的是从数据的地址指针中读取数据,输入到文件中,数据指针是pDaqData,一直有错误,请问怎样改正
#include "stdafx.h"
#include "VCDemo.h"
#include "VCDemoDlg.h"
#include "dlllvpci.h"
#include<stdio.h>
int *pDaqData ;
FILE *fpCsv;
if( ( fpCsv = fopen ("DataSingle.csv","w")) == NULL )
{
MessageBox("写 DataSingle.csv 文件失败!","系统警告",MB_OK);
return;
}
fprintf(fpCsv, "像素,光强\n");
for(int i=0;i<2048;i++)
{fprintf(fpCsv, "%d,%d\n",i+1,(pDaqData)[i]);
}