小编Fut*_*son的帖子

为什么我的min和max值为0?

#include <stdio.h>
#include <stdlib.h>
#include <time.h> /* to initialize your random generator */
#define BUFF_SIZE 10
#define FIVE 5
#define TEN 10
#define ZERO 0
#define ONE 1
float min=0;
float max=0;
float average=0;
float input_buffer[BUFF_SIZE+2] = {0};
float output_buffer[FIVE] = {0};
float local_buffer[TEN];
int no_of_data_pts=0;
int function_id=0;

// a function for generating data size, function ID and
// all data, and putting all of it into input_buffer
void generate_data() {
    /* initialize random seed: */
    srand ( time(NULL) ); …
Run Code Online (Sandbox Code Playgroud)

c average max min

-2
推荐指数
1
解决办法
232
查看次数

标签 统计

average ×1

c ×1

max ×1

min ×1