initial commit
This commit is contained in:
30
include/LAB6.h
Normal file
30
include/LAB6.h
Normal file
@@ -0,0 +1,30 @@
|
||||
#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
|
||||
Reference in New Issue
Block a user