This commit is contained in:
ada-dmitry
2023-03-28 13:22:08 +03:00
parent 1e69e53e91
commit ce57be30e6
5 changed files with 125 additions and 0 deletions
@@ -0,0 +1,22 @@
#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);
}