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