回覆列表
-
1 # 使用者44524668336
-
2 # lanfengz1
int *pBuf;
pBuf = new int[UsedRows+1];
int j=0;
for (int k=1;k
{
CString strSingel;
strSingel = AstrALLstr[k-1];
int nBuf;;
nBuf=atoi(strSingel);
memcpy(pBuf+j,&nBuf,sizeof(&nBuf));
j++;
}
//下面就可以對動態陣列的值進行你想要的計算了,例如:
int nCal;
nCal = pBuf[300]+pBuf[400];
delete []pBuf;
pBuf =NULL;
1. processing的庫 Libraries \ Processing.org 裡面有個XlsReaderGitHub - fjenett/xlsreader-library-processing: a Processing library that can read from .xls (aka. Excel) files2. excel匯出成csv , 然後把csv當文字讀, 一行就是excel裡的一行, 列是逗號分隔的