typedef struct
{
int intElement;
char* stringElement;
int intElement1;
}test1;
typedef struct
{
int nNum;
test1* b;
}test2;
extern "C"{
__declspec(dllexport) int __stdcall setNum(test2* clusterArray)
{
clusterArray->nNum = 2;
for (int i = 0; i < clusterArray->nNum; i++) {
clusterArray->b[i].stringElement = (char*)malloc(10 * sizeof(char));
strcpy(clusterArray->b[i].stringElement, "Hello");
clusterArray->b[i].intElement = i + 1;
}
return 1;
}
}
类似这样的库函数,labview该如何设计呢?
或者
图片中的labview该怎么设计c库呢?