更新了文件名。开始了数据结构

This commit is contained in:
lzy
2024-04-14 06:55:53 +08:00
parent 9bc7edbf47
commit 45bcb90c6d
69 changed files with 455 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
#include <stdio.h>
#include <stdlib.h>
#include <errno.h>
#include <string.h>
int main()
{
FILE *fp;
fp = fopen("tmp", "r");
if (fp == NULL)
{
fprintf(stderr, "fopen():%s\n", strerror(errno));
exit(1);
}
puts("ok!");
exit(0);
}

View File

@@ -0,0 +1,12 @@
#include <stdio.h>
int main(void)
{
int *p = NULL;
int i;
p = (int *)malloc(sizeof(int));
if (p == NULL)
return -1;
printf("Hello world!\n");
return 0;
}

View File

@@ -0,0 +1,6 @@
#include <stdio.h>
int main(void)
{
printf("Hello world!\n");
}