31 lines
510 B
C
31 lines
510 B
C
#ifndef LAB6_H
|
|
#define LAB6_H
|
|
|
|
#include <stddef.h>
|
|
#include <stdint.h>
|
|
|
|
#include "shared.h"
|
|
|
|
typedef struct {
|
|
char* name;
|
|
int32_t* ptr;
|
|
size_t size;
|
|
} ArrayI32;
|
|
|
|
void read_array(ArrayI32* a);
|
|
void print_array(ArrayI32* a);
|
|
|
|
void swap_indices(ArrayI32* array, size_t a, size_t b);
|
|
void swap_sign(ArrayI32* a);
|
|
|
|
size_t positive_count(ArrayI32* a);
|
|
|
|
size_t min_element_index(ArrayI32* a);
|
|
size_t max_element_index(ArrayI32* a);
|
|
|
|
ArrayI32 make_an_array(char* name, size_t size);
|
|
|
|
void lab_6();
|
|
|
|
#endif
|