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
+4 -4
View File
@@ -3,9 +3,9 @@
int main(int argc, char* argv[]) {
srand(time(0));
LinkedList* l1 = malloc(sizeof(LinkedList));
LinkedList* l2 = malloc(sizeof(LinkedList));
LinkedList* l3 = malloc(sizeof(LinkedList));
LinkList* l1 = malloc(sizeof(LinkList));
LinkList* l2 = malloc(sizeof(LinkList));
LinkList* l3 = malloc(sizeof(LinkList));
if (l1 == NULL || l2 == NULL || l3 == NULL)
exit(1);
@@ -17,7 +17,7 @@ int main(int argc, char* argv[]) {
s[j] = 'a' + rand() % 25;
s[j + 1] = '\0';
LinkedList l;
LinkList l;
l.x = i;
memcpy(l.name, s, LEN);
l.next = NULL;