?? array1dhandle.c
字號:
#include "extcode.h"
#include <math.h>
/* LabVIEW created typedefs */
typedef struct {
int32 dimSize;
double elt[1];
} TD1;
typedef TD1 **TD1Hdl;
typedef struct {
int32 dimSize;
long elt[1];
} TD2;
typedef TD2 **TD2Hdl;
_declspec(dllexport) void ARRAY1DHandle(TD1Hdl input, TD2Hdl output);
_declspec(dllexport) void ARRAY1DHandle(TD1Hdl input, TD2Hdl output)
{
int i;
/* Calculate the floor of the square of each value. */
for(i = 0; i < (*input)->dimSize; i++)
{
(*output)->elt[i] = (int)floor((*input)->elt[i] * (*input)->elt[i]);
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -