array1dexample.c

来自「labview实例+8.0版本」· C语言 代码 · 共 19 行

C
19
字号
#include <math.h>

_declspec(dllexport) void ARRAYfloor1D(double *input,
                                       int input_length,
                                       int *output);

_declspec(dllexport) void ARRAYfloor1D(double *input,
                                       int input_length,
                                       int *output)
{
  int i;

  /* Calculate the floor of the square of each value. */
  for(i = 0; i < input_length; i++)
  {
    output[i] = (int)floor(input[i] * input[i]);
  }
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?