dir.main added

This commit is contained in:
ada-dmitry
2023-04-25 08:05:41 +03:00
parent 62d99ba675
commit 1f8e90cb3d
37 changed files with 1018 additions and 321 deletions
+30
View File
@@ -0,0 +1,30 @@
#pragma once
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#define N 5
#define STR_LEN 8
typedef struct LinkedList
{
int x;
struct LinkedList *next;
struct LinkedList *prev;
char name[STR_LEN];
} LinkedList;
void linked_print(LinkedList *l);
LinkedList *add_tail(LinkedList *l, int x, char name[]);
LinkedList *add_head(LinkedList *l, int x, char name[]);
LinkedList *del_head(LinkedList *l);
void del_tail(LinkedList *l);
int len(LinkedList *l);
LinkedList get(LinkedList *l, int n);
void swap(LinkedList *l1, int i, int j);
void select_sort(LinkedList *l);
void list_fprintf(LinkedList *l, char path[]);
LinkedList *list_fscanf(char path[]);