Сделал 22 Задание Массивов
This commit is contained in:
parent
c3182c8c24
commit
5852a9f034
23 changed files with 99 additions and 31 deletions
15
WorkingArrays/15Ex/main.c
Normal file
15
WorkingArrays/15Ex/main.c
Normal file
|
@ -0,0 +1,15 @@
|
|||
#include <stdio.h>
|
||||
#include "tools.h"
|
||||
#include "replace_local_min.h"
|
||||
|
||||
int main(void) {
|
||||
double * numbers;
|
||||
FILE * file = getFile();
|
||||
if (file == NULL) return -1;
|
||||
|
||||
numbers = getList(file);
|
||||
if (numbers == NULL) return 1;
|
||||
|
||||
printf("Count elements in file: %d", replaceLocalMin(numbers));
|
||||
free(numbers);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue