第七章完结

This commit is contained in:
lzy
2024-04-12 17:58:57 +08:00
parent 4ef71d5b95
commit 6d54ee810a
10 changed files with 954 additions and 0 deletions

17
Chapter7/main.c Normal file
View File

@@ -0,0 +1,17 @@
#include <stdio.h>
#include <stdlib.h>
int main(int argc, char *argv[])
{
printf("argc = %d\n", argc);
// 输出传入参数的个数
// for (int i = 0; i < argc; i++) puts(argv[i]);
for (int i = 0; argv[i] != NULL; i++) puts(argv[i]);
// printf("Hello!\n");
exit(0);
}