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