mirror of
https://github.com/ada-dmitry/prog.l_ada.git
synced 2026-09-24 09:10:14 +00:00
22 lines
394 B
C
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);
|
|
} |