Files
prog.l_ada/PL/Lessons/L28.03 - Dinamic Structure/main.c
T
2023-03-28 13:22:08 +03:00

22 lines
394 B
C

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "header.h"
#include <windows.h>
int main(int args, char *argv[]){
node *head=NULL;
int r;
srand(time(NULL));
while((r=(rand()%100))<90) head = add_head(head,r);
pr(head);
head = del_head(head);
pr(head);
head = add_tail(head, 5);
pr(head);
head = del_tail(head);
pr(head);
}