From 9186b78148e60389e1965073c7dcb08aa0cbb2a9 Mon Sep 17 00:00:00 2001 From: TGSpock123 Date: Sun, 21 Jan 2024 12:48:49 +0800 Subject: [PATCH] daily upload 11.21 --- .idea/dictionaries/tgspock.xml | 3 + 11/11/11.22.c | 6 +- 11/11/11.23.c | 19 +++ 11/11/11.24.c | 29 +++++ 11/11/11.25.c | 30 +++++ 11/11/11.26.c | 16 +++ 11/11/11.27.c | 31 +++++ 11/11/11.28.c | 20 +++ 11/11/11.29.c | 114 ++++++++++++++++++ 11/11/11.30.c | 47 ++++++++ 11/11/s_gets.c | 17 +-- CMakeLists.txt | 2 +- ...=> codemodel-v2-570e37c8900be2a43840.json} | 2 +- ...on => index-2024-01-21T04-32-30-0706.json} | 4 +- ...-C_primer-Debug-c6656e18f983ae479999.json} | 2 +- cmake-build-debug/.ninja_deps | Bin 6776 -> 6416 bytes cmake-build-debug/.ninja_log | 54 +++++---- .../CMakeFiles/C_primer.dir/11/11/11.22.c.o | Bin 2880 -> 2736 bytes .../CMakeFiles/C_primer.dir/11/11/11.23.c.o | Bin 0 -> 3048 bytes .../CMakeFiles/C_primer.dir/11/11/11.24.c.o | Bin 0 -> 3128 bytes .../CMakeFiles/C_primer.dir/11/11/11.25.c.o | Bin 0 -> 3200 bytes .../CMakeFiles/C_primer.dir/11/11/11.26.c.o | Bin 0 -> 2960 bytes .../CMakeFiles/C_primer.dir/11/11/11.27.c.o | Bin 0 -> 3168 bytes .../CMakeFiles/C_primer.dir/11/11/11.28.c.o | Bin 0 -> 3072 bytes .../CMakeFiles/C_primer.dir/11/11/11.29.c.o | Bin 0 -> 6856 bytes .../CMakeFiles/C_primer.dir/11/11/11.30.c.o | Bin 0 -> 3936 bytes .../CMakeFiles/C_primer.dir/11/11/s_gets.c.o | Bin 2680 -> 2616 bytes .../C_primer.dir/count_all_codes.c.o | Bin 0 -> 7640 bytes cmake-build-debug/C_primer | Bin 50360 -> 50560 bytes .../Testing/Temporary/LastTest.log | 4 +- cmake-build-debug/build.ninja | 6 +- count_all_codes.c | 104 ++++++++++++++++ 32 files changed, 461 insertions(+), 49 deletions(-) create mode 100644 .idea/dictionaries/tgspock.xml create mode 100644 11/11/11.24.c create mode 100644 11/11/11.25.c create mode 100644 11/11/11.26.c create mode 100644 11/11/11.27.c create mode 100644 11/11/11.28.c create mode 100644 11/11/11.29.c create mode 100644 11/11/11.30.c rename cmake-build-debug/.cmake/api/v1/reply/{codemodel-v2-5617b905eb5271d10553.json => codemodel-v2-570e37c8900be2a43840.json} (93%) rename cmake-build-debug/.cmake/api/v1/reply/{index-2024-01-17T08-01-06-0847.json => index-2024-01-21T04-32-30-0706.json} (93%) rename cmake-build-debug/.cmake/api/v1/reply/{target-C_primer-Debug-0a97314528f9f09bd539.json => target-C_primer-Debug-c6656e18f983ae479999.json} (98%) create mode 100644 cmake-build-debug/CMakeFiles/C_primer.dir/11/11/11.23.c.o create mode 100644 cmake-build-debug/CMakeFiles/C_primer.dir/11/11/11.24.c.o create mode 100644 cmake-build-debug/CMakeFiles/C_primer.dir/11/11/11.25.c.o create mode 100644 cmake-build-debug/CMakeFiles/C_primer.dir/11/11/11.26.c.o create mode 100644 cmake-build-debug/CMakeFiles/C_primer.dir/11/11/11.27.c.o create mode 100644 cmake-build-debug/CMakeFiles/C_primer.dir/11/11/11.28.c.o create mode 100644 cmake-build-debug/CMakeFiles/C_primer.dir/11/11/11.29.c.o create mode 100644 cmake-build-debug/CMakeFiles/C_primer.dir/11/11/11.30.c.o create mode 100644 cmake-build-debug/CMakeFiles/C_primer.dir/count_all_codes.c.o create mode 100644 count_all_codes.c diff --git a/.idea/dictionaries/tgspock.xml b/.idea/dictionaries/tgspock.xml new file mode 100644 index 0000000..9a8c2ca --- /dev/null +++ b/.idea/dictionaries/tgspock.xml @@ -0,0 +1,3 @@ + + + \ No newline at end of file diff --git a/11/11/11.22.c b/11/11/11.22.c index ba02f65..3e8babf 100644 --- a/11/11/11.22.c +++ b/11/11/11.22.c @@ -1,12 +1,12 @@ #include "s_gets.h" int main (void) { - char ch[20], ch2[20]; + char ch[5], ch2[5]; printf ("Please enter an array. \n"); - s_gets (ch, 20); + s_gets (ch, 5); printf ("Please enter another array. \n"); - s_gets (ch2, 20); + s_gets (ch2, 5); printf ("strcmp (\"%s\" and \"%s\") is %d. \n", ch, ch2, strcmp (ch, ch2)); return 0; diff --git a/11/11/11.23.c b/11/11/11.23.c index e69de29..32a9e7d 100644 --- a/11/11/11.23.c +++ b/11/11/11.23.c @@ -0,0 +1,19 @@ +#include "s_gets.h" +#define SIZE 80 +#define LIM 10 +#define STOP "quit" +int main (void) +{ + char input[LIM][SIZE]; + int ct = 0; + + printf ("Enter up to %d lines (type quit to quit): \n", LIM); + while (ct < LIM && s_gets (input[ct], SIZE) != NULL && + strcmp (input[ct], STOP) != 0 && input[ct][0] != '\0') + { + ct ++; + } + printf ("%d strings entered. \n", ct); + + return 0; +} \ No newline at end of file diff --git a/11/11/11.24.c b/11/11/11.24.c new file mode 100644 index 0000000..97a414c --- /dev/null +++ b/11/11/11.24.c @@ -0,0 +1,29 @@ +#include +#include +#define LISTSIZE 6 +int main (void) +{ + const char * list[LISTSIZE] = + { + "astronomy", + "astounding", + "astrophysics", + "ostracize", + "asterism", + "astrophobia" + }; + int count = 0; + int i; + + for (i = 0; i < LISTSIZE; i++) + { + if (strncmp (list[i], "astr", 4) == 0) + { + printf ("Found: %s.\n", list[i]); + count ++; + } + } + printf ("The list contained %d words beginning with astr. \n", count); + + return 0; +} \ No newline at end of file diff --git a/11/11/11.25.c b/11/11/11.25.c new file mode 100644 index 0000000..b56f0c5 --- /dev/null +++ b/11/11/11.25.c @@ -0,0 +1,30 @@ +#include "s_gets.h" +#define SIZE 40 +#define LIM 5 +int main (void) +{ + char qwords[LIM][SIZE]; + char temp[SIZE]; + int i = 0; + + printf ("Enter %d words beginning with q: \n", LIM); + while (i < LIM && s_gets(temp, SIZE)) + { + if (temp[0] != 'q') + { + printf ("%s doesn't begin with q! \n", temp); + }else + { + strcpy (qwords[i], temp); + i ++; + } + } + puts ("\nHere are the words accepted: "); + for (i = 0; i < LIM; i ++) + { + puts (qwords[i]); + } + + return 0; +} +//后面是被复制字符串, 把后面的放进前面的, 参考 mov ax, 4 \ No newline at end of file diff --git a/11/11/11.26.c b/11/11/11.26.c new file mode 100644 index 0000000..b08af0b --- /dev/null +++ b/11/11/11.26.c @@ -0,0 +1,16 @@ +#include +#include +#define WORD "beast" +#define SIZE 40 +int main (void) +{ + const char * orig = WORD; + char copy[SIZE] = "Be the best you can be."; + char * ps; + + puts (copy); + ps = strcpy (copy + 7, orig); + puts (copy); + + return 0; +} \ No newline at end of file diff --git a/11/11/11.27.c b/11/11/11.27.c new file mode 100644 index 0000000..d65253a --- /dev/null +++ b/11/11/11.27.c @@ -0,0 +1,31 @@ +#include "s_gets.h" +#define SIZE 40 +#define TARGETSIZE 7 +#define LIM 5 +int main (void) +{ + char qwords[LIM][TARGETSIZE]; + char temp[SIZE]; + int i = 0; + + printf ("Enter %d words beginning with q: \n", LIM); + while (i < LIM && s_gets(temp, SIZE)) + { + if (temp[0] != 'q') + { + printf ("%s doesn't begging with 'q'! \n", temp); + }else + { + strncpy (qwords[i], temp, TARGETSIZE - 1); + qwords[i][TARGETSIZE - 1] = '\0'; + i ++; + } + } + puts ("Here are the words accepted:"); + for (i = 0; i < LIM; i ++) + { + puts (qwords[i]); + } + + return 0; +} \ No newline at end of file diff --git a/11/11/11.28.c b/11/11/11.28.c new file mode 100644 index 0000000..fd55d2b --- /dev/null +++ b/11/11/11.28.c @@ -0,0 +1,20 @@ +#include "s_gets.h" +#define MAX 20 +int main (void) +{ + char first[MAX]; + char last[MAX]; + char formal[2 * MAX + 10]; + double prize; + + puts ("Enter your first name: "); + s_gets (first, MAX); + puts ("Enter your last name: "); + s_gets (last, MAX); + puts ("Enter your prize money: "); + scanf ("%lf", &prize); + sprintf (formal, "%s %-19s: $%6.2f\n",first, last, prize); + puts (formal); + + return 0; +} \ No newline at end of file diff --git a/11/11/11.29.c b/11/11/11.29.c new file mode 100644 index 0000000..c618a2e --- /dev/null +++ b/11/11/11.29.c @@ -0,0 +1,114 @@ +//test +#include "s_gets.h" +int main (void) +{ + char ch1[40], ch2[40], q, *qwe; + int i = 5; + + printf ("please enter ch1, strcpy wil make ch2: \n"); + s_gets (ch1, 40); + printf ("1. %s\n", ch1); + strcpy (ch2, ch1); + printf ("1. %s\n", ch2); + + printf ("please enter ch1, strncpy wil make ch2: \n"); + s_gets (ch1, 40); + printf ("2. %s\n",ch1); + strncpy (ch2, ch1, i); + ch2[i] = '\0'; + printf ("2. %s\n", ch2); + + printf ("this test is for strcat, please enter ch1: \n"); + s_gets (ch1, 40); + printf ("please enter ch2: \n"); + s_gets (ch2, 40); + strcat (ch1, ch2); + printf ("3. %s\n", ch1); + + printf ("this is for strncat, please enter ch1: \n"); + s_gets (ch1, 40); + printf ("please enter ch2: \n"); + s_gets (ch2, 40); + strncat (ch1, ch2, 40 - 1 - strlen(ch1)); + printf ("4. %s\n", ch1); + + printf ("this test is for strcmp, please enter ch1: \n"); + s_gets (ch1, 40); + printf ("please enter ch2: \n"); + s_gets (ch2, 40); + printf ("5. %d\n", strcmp (ch1, ch2)); + + printf ("this is for strncmp, please enter ch1: \n"); + s_gets (ch1, 40); + printf ("please enter ch2: \n"); + s_gets (ch2, 40); + printf ("6. %d\n", strncmp (ch1, ch2, i)); + + //书上这段错了, 具体看示例代码 + printf ("this test is for strchr, please enter ch1: \n"); + s_gets (ch1, 40); + printf ("please enter a charater: \n"); + q = getchar(); + getchar(); + if (!strchr (ch1, q)) + { + printf ("7. there is no %c in ch1: %s\n", q, ch1); + }else + { + qwe = strchr (ch1, q); + printf ("7. %c is in ch1: %s, after %c is %s\n", q, ch1, q, qwe + 1); + } + + //这段也错了 + printf ("this test is for strpbrk, please enter ch1: \n"); + s_gets (ch1, 40); + printf ("please enter ch2: \n"); + s_gets (ch2, 40); + if (!strpbrk (ch1, ch2)) + { + printf ("8. there is no element of ch2: %s in ch1: %s\n", ch2, ch1); + }else + { + qwe = strpbrk (ch1, ch2); + printf ("8. there is at least one element" + "of ch2: %s is in ch1: %s \nafter the first match is %s\n", ch2, ch1, qwe + 1); + while (!strpbrk (qwe + 1, ch2)) + { + qwe = strpbrk (qwe + 1, ch2); + printf ("after next match is %s\n", qwe + 1); + } + } + + printf ("this test is for strrchr, please enter ch1: \n"); + s_gets (ch1, 40); + printf ("please enter a charater: \n"); + q = getchar(); + getchar(); + if (!strrchr (ch1, q)) + { + printf ("9. there is no %c in ch1: %s\n", q, ch1); + }else + { + qwe = strrchr (ch1, q); + printf ("9. %c is in ch1: %s, after %c' last match is %s\n", q, ch1, q, qwe + 1); + } + + printf ("this test is for strstr, please enter ch1: \n"); + s_gets (ch1, 40); + printf ("please enter ch2: \n"); + s_gets (ch2, 40); + if (!strstr (ch1, ch2)) + { + printf ("10. ch2: %s is not in ch1: %s\n", ch2, ch1); + }else + { + qwe = strstr (ch1, ch2); + printf ("10. ch2: %s is in ch1: %s, after ch2 is %s\n", ch2, ch1, qwe + strlen(ch2)); + } + + printf ("this test is for strlen, please enter ch1: \n"); + s_gets (ch1, 40); + printf ("the length of ch1: %s is %lu\n", ch1, strlen (ch1)); + + return 0; +} \ No newline at end of file diff --git a/11/11/11.30.c b/11/11/11.30.c new file mode 100644 index 0000000..5af71e4 --- /dev/null +++ b/11/11/11.30.c @@ -0,0 +1,47 @@ +#include "s_gets.h" +#define SIZE 81 +#define LIM 20 +#define HALT "" + +void stsrt (char *strings[], int num) +{ + char *temp; + int top, seek; + + for (top = 0; top < num - 1; top ++) + { + for (seek = top + 1; seek < num; seek ++) + { + if (strcmp (strings[top], strings[seek]) > 0) + { + temp = strings[top]; + strings[top] = strings[seek]; + strings[seek] = temp; + } + } + } +} + +int main (void) +{ + char input[LIM][SIZE]; + char *ptstr[LIM]; + int ct = 0; + int k; + + printf ("Input up to %d lines, and I will sort em. \n", LIM); + printf ("Press enter in an empty line to quit. \n"); + while (ct < LIM && s_gets(input[ct], SIZE) && input[ct][0]) + { + ptstr[ct] = input[ct]; + ct ++; + } + stsrt (ptstr, ct); + puts ("\nHere's the sort list: \n"); + for (k = 0; k < ct; k ++) + { + puts (ptstr[k]); + } + + return 0; +} \ No newline at end of file diff --git a/11/11/s_gets.c b/11/11/s_gets.c index aab0630..271c01b 100644 --- a/11/11/s_gets.c +++ b/11/11/s_gets.c @@ -1,25 +1,18 @@ #include "s_gets.h" char * s_gets (char *st, int n) { - char * ret_val; - int i = 0; + char * ret_val, * find; ret_val = fgets(st, n, stdin); if (ret_val) { - while ((st[i] != '\n') && (st[i])) + if (strchr (ret_val, '\n')) { - i ++; - } - if (st[i] == '\n') - { - st[i] = '\0'; + find = strchr (ret_val, '\n'); + *find = '\0'; }else { - while ((getchar() == '\n') == 0) - { - continue; - } + while ((getchar() == '\n') == 0); } } diff --git a/CMakeLists.txt b/CMakeLists.txt index 7938e97..848e52c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -6,5 +6,5 @@ set(CMAKE_CXX_STANDARD 14) include_directories(9) add_executable(C_primer - 11/11/11.22.c 11/11/s_gets.c + 11/11/11.30.c 11/11/s_gets.c ) diff --git a/cmake-build-debug/.cmake/api/v1/reply/codemodel-v2-5617b905eb5271d10553.json b/cmake-build-debug/.cmake/api/v1/reply/codemodel-v2-570e37c8900be2a43840.json similarity index 93% rename from cmake-build-debug/.cmake/api/v1/reply/codemodel-v2-5617b905eb5271d10553.json rename to cmake-build-debug/.cmake/api/v1/reply/codemodel-v2-570e37c8900be2a43840.json index 39b8035..7c78a92 100644 --- a/cmake-build-debug/.cmake/api/v1/reply/codemodel-v2-5617b905eb5271d10553.json +++ b/cmake-build-debug/.cmake/api/v1/reply/codemodel-v2-570e37c8900be2a43840.json @@ -39,7 +39,7 @@ { "directoryIndex" : 0, "id" : "C_primer::@6890427a1f51a3e7e1df", - "jsonFile" : "target-C_primer-Debug-0a97314528f9f09bd539.json", + "jsonFile" : "target-C_primer-Debug-c6656e18f983ae479999.json", "name" : "C_primer", "projectIndex" : 0 } diff --git a/cmake-build-debug/.cmake/api/v1/reply/index-2024-01-17T08-01-06-0847.json b/cmake-build-debug/.cmake/api/v1/reply/index-2024-01-21T04-32-30-0706.json similarity index 93% rename from cmake-build-debug/.cmake/api/v1/reply/index-2024-01-17T08-01-06-0847.json rename to cmake-build-debug/.cmake/api/v1/reply/index-2024-01-21T04-32-30-0706.json index be98fbc..2f6d584 100644 --- a/cmake-build-debug/.cmake/api/v1/reply/index-2024-01-17T08-01-06-0847.json +++ b/cmake-build-debug/.cmake/api/v1/reply/index-2024-01-21T04-32-30-0706.json @@ -26,7 +26,7 @@ "objects" : [ { - "jsonFile" : "codemodel-v2-5617b905eb5271d10553.json", + "jsonFile" : "codemodel-v2-570e37c8900be2a43840.json", "kind" : "codemodel", "version" : { @@ -86,7 +86,7 @@ }, "codemodel-v2" : { - "jsonFile" : "codemodel-v2-5617b905eb5271d10553.json", + "jsonFile" : "codemodel-v2-570e37c8900be2a43840.json", "kind" : "codemodel", "version" : { diff --git a/cmake-build-debug/.cmake/api/v1/reply/target-C_primer-Debug-0a97314528f9f09bd539.json b/cmake-build-debug/.cmake/api/v1/reply/target-C_primer-Debug-c6656e18f983ae479999.json similarity index 98% rename from cmake-build-debug/.cmake/api/v1/reply/target-C_primer-Debug-0a97314528f9f09bd539.json rename to cmake-build-debug/.cmake/api/v1/reply/target-C_primer-Debug-c6656e18f983ae479999.json index a5aa9de..314b1b7 100644 --- a/cmake-build-debug/.cmake/api/v1/reply/target-C_primer-Debug-0a97314528f9f09bd539.json +++ b/cmake-build-debug/.cmake/api/v1/reply/target-C_primer-Debug-c6656e18f983ae479999.json @@ -99,7 +99,7 @@ { "backtrace" : 1, "compileGroupIndex" : 0, - "path" : "11/11/11.22.c", + "path" : "11/11/11.30.c", "sourceGroupIndex" : 0 }, { diff --git a/cmake-build-debug/.ninja_deps b/cmake-build-debug/.ninja_deps index efa8b501f4a1d2538cc2b4966062cc8f39dcfad0..4a15b06f012aebd861275b6d012b0a70806d982c 100644 GIT binary patch delta 78 zcmexiGQns=ff%Rf9M0Z&=QZMtlP^jxpR6FR%4BRX*U$k{s-B@9^A6h42AgiymVD delta 118 zcmbPW^uuIBff(oXbCnC1-(MxpIC-P^^2rL~s!T>klikJrrHzdAk{K8-|NsAg0|P^Y zHUk5L{*=_MEF!DLbtcz}Ef$1{8vpmM4u*;HZ-J`4f2!y7f05Ob*NbmtpUC>?zoaOL Gy%GTYGb@Au diff --git a/cmake-build-debug/.ninja_log b/cmake-build-debug/.ninja_log index 816df26..e237577 100644 --- a/cmake-build-debug/.ninja_log +++ b/cmake-build-debug/.ninja_log @@ -1,29 +1,35 @@ # ninja log v5 -0 398 1703341888622940162 CMakeFiles/C_primer.dir/10_plus_2/10_plus_2/10.26.c.o eac4638a5b3bb1a6 -183 279 1705478273208680466 C_primer c490b5f16ac440d3 -1 79 1704987149621406781 CMakeFiles/C_primer.dir/11/11/11.18.c.o a8a9353c4b47a706 -2 247 1705292200850914317 CMakeFiles/C_primer.dir/11/11/11.19.c.o fe1937fff2522a0d -0 305 1702822896335875576 CMakeFiles/C_primer.dir/9_plus/9_plus/9.35.c.o c09ce47479a5514a -1 768 1703335314154911819 CMakeFiles/C_primer.dir/10_plus/10.27.c.o e943e8b249a83691 -1 138 1702825381555261318 CMakeFiles/C_primer.dir/10_plus/10.13.c.o 7bef308e0e43b8ac -8 399 1703341888623019922 CMakeFiles/C_primer.dir/10_plus_2/10_plus_2/10.27.c.o c931a25c28b6f776 -0 434 1705478466822386898 build.ninja 40ffa430796bc747 -2 620 1703211568893536340 CMakeFiles/C_primer.dir/10_plus/10.25.c.o df8f1239080514a -0 431 1702958013825178426 CMakeFiles/C_primer.dir/10_plus/10.15.c.o 3cd52d55636f54b -0 267 1702717481449984888 CMakeFiles/C_primer.dir/10_plus/10.12.c.o d0b2887c66daa4b1 +1 650 1705728959565596464 CMakeFiles/C_primer.dir/11/11/11.28.c.o 879ba678eb7659d3 +1 139 1705655794891216181 CMakeFiles/C_primer.dir/11/11/11.26.c.o 60cd9bd27e13dee9 4 335 1702822896367170007 CMakeFiles/C_primer.dir/9_plus/9_plus/9.36.c.o 9f95dd8b31879556 -7 365 1705421319974801047 CMakeFiles/C_primer.dir/11/11/s_gets.c.o 482640b116f7f053 -1 144 1702825381558358062 CMakeFiles/C_primer.dir/10_plus/10.14.c.o 27c11ea85739635 -1 139 1703332966115689949 CMakeFiles/C_primer.dir/10_plus/10.26.c.o 1fb19967a9825110 -0 712 1703213310905304912 CMakeFiles/C_primer.dir/10_plus/10.28.c.o c90e9088be1fd995 3 743 1705477691140561907 CMakeFiles/C_primer.dir/11/11/11.20.c.o 4d41b33316ec8196 +8 399 1703341888623019922 CMakeFiles/C_primer.dir/10_plus_2/10_plus_2/10.27.c.o c931a25c28b6f776 1 314 1705426175402873873 CMakeFiles/C_primer.dir/11/11/ttttttt.c.o e65d1f4f85245257 +1 768 1703335314154911819 CMakeFiles/C_primer.dir/10_plus/10.27.c.o e943e8b249a83691 +1 143 1705647977382829895 CMakeFiles/C_primer.dir/11/11/11.23.c.o 8d1dd77d660222d8 +0 305 1702822896335875576 CMakeFiles/C_primer.dir/9_plus/9_plus/9.35.c.o c09ce47479a5514a +1 79 1704987149621406781 CMakeFiles/C_primer.dir/11/11/11.18.c.o a8a9353c4b47a706 +1 213 1705593199876040862 CMakeFiles/C_primer.dir/11/11/11.22.c.o aeaa032b253b3f6 +1 187 1705656507378973250 CMakeFiles/C_primer.dir/11/11/11.27.c.o 2d5ba875468ac8fb 1 182 1705478273108029140 CMakeFiles/C_primer.dir/11/11/11.21.c.o a5f1d6b58ebbc38e -2 169 1705478894345622575 CMakeFiles/C_primer.dir/11/11/11.22.c.o aeaa032b253b3f6 -170 294 1705478894486254859 C_primer 3902fba5a7bdf198 -6 519 1705479232673283891 CMakeFiles/C_primer.dir/11/11/11.22.c.o aeaa032b253b3f6 -519 628 1705479232784453426 C_primer 3902fba5a7bdf198 -2 173 1705479972754082527 CMakeFiles/C_primer.dir/11/11/11.22.c.o aeaa032b253b3f6 -173 369 1705479972947573857 C_primer 3902fba5a7bdf198 -1 214 1705480085301233041 CMakeFiles/C_primer.dir/11/11/11.22.c.o aeaa032b253b3f6 -214 308 1705480085402104822 C_primer 3902fba5a7bdf198 +1 144 1702825381558358062 CMakeFiles/C_primer.dir/10_plus/10.14.c.o 27c11ea85739635 +0 133 1705807674707591764 CMakeFiles/C_primer.dir/11/11/11.29.c.o 4578e5e29e3d0feb +1 139 1703332966115689949 CMakeFiles/C_primer.dir/10_plus/10.26.c.o 1fb19967a9825110 +0 712 1703213310905304912 CMakeFiles/C_primer.dir/10_plus/10.28.c.o c90e9088be1fd995 +1 94 1705649854118681712 CMakeFiles/C_primer.dir/11/11/11.24.c.o 9c813ca189b53dc +0 267 1702717481449984888 CMakeFiles/C_primer.dir/10_plus/10.12.c.o d0b2887c66daa4b1 +1 100 1705652108918433891 CMakeFiles/C_primer.dir/11/11/11.25.c.o 9311352dfbe1bec9 +1 137 1705807674711430391 CMakeFiles/C_primer.dir/11/11/s_gets.c.o 482640b116f7f053 +2 620 1703211568893536340 CMakeFiles/C_primer.dir/10_plus/10.25.c.o df8f1239080514a +2 247 1705292200850914317 CMakeFiles/C_primer.dir/11/11/11.19.c.o fe1937fff2522a0d +0 431 1702958013825178426 CMakeFiles/C_primer.dir/10_plus/10.15.c.o 3cd52d55636f54b +0 434 1705811550674513896 build.ninja 40ffa430796bc747 +1 138 1702825381555261318 CMakeFiles/C_primer.dir/10_plus/10.13.c.o 7bef308e0e43b8ac +3 161 1705810764224886659 CMakeFiles/C_primer.dir/count_all_codes.c.o bc1d9f2637b19595 +164 351 1705810764413024005 C_primer cc79695adb62baee +0 398 1703341888622940162 CMakeFiles/C_primer.dir/10_plus_2/10_plus_2/10.26.c.o eac4638a5b3bb1a6 +2 401 1705812436533746761 CMakeFiles/C_primer.dir/11/11/s_gets.c.o 482640b116f7f053 +1 415 1705812436555428092 CMakeFiles/C_primer.dir/11/11/11.30.c.o febb14f1edb3a233 +415 586 1705812436732955345 C_primer 502a84d303e7a6f0 +0 112 1705812463562054893 CMakeFiles/C_primer.dir/11/11/11.30.c.o febb14f1edb3a233 +113 287 1705812463732136563 C_primer 502a84d303e7a6f0 diff --git a/cmake-build-debug/CMakeFiles/C_primer.dir/11/11/11.22.c.o b/cmake-build-debug/CMakeFiles/C_primer.dir/11/11/11.22.c.o index 0303a0a4b31193a6fd7acc0de33565544834e7c9..f0e3317190ac4f592b09fbcd2b23faed734b21b1 100644 GIT binary patch delta 712 zcmX>gwn21)gP=7l0~oAefzZ|y1MNjyAZ!MZAV~ZLCj$fL#HGeUFo|%e0v*=Lwv5t~ zSs9fDZ$pLBpmg(OOGbN1M@9&@3o7~&YMsI4iHzogr=hZOP`Y^XO-6e`O=gH<8>pU( zlQo&_1yiA-Do|10$(2CSPBc-&$tQuLYoVg8P_?0xC7JCdEkIrY0tGP1!0>>BfdQn@ zVR9j}xnKlT)&VNZFnK3X&kU&OVyLJCFeE_0W3nKNId1?LBzz_SX@$w5Eb@%ZlN(vo zCr@DEsSow&eCpBsM&Y>YAFzgA+dLq>f#C&&SNnY*C@7#j+iVoMPsnnv-#t2AA9(b- zege`jJbG)td-Rrmf@th6ec;g@`l9ooN3X3L!U)3y9<0qr6k-ogj$nQ5(*l%W0%9-# zaTvo)fdS6QlmTQjGfgbF1Myh$A-tj}IFEtF3dm+0O`;a$9W5`qXWh@hadqM-f>z2zb(dN&}VZ!)hM9oYTe`+e^{c4x*3xw~5_vt+RT z>gY;K?YU&gQ8ANH@;w2@M%oW!yS9z9RB+A!i|+-4A25fwVg<6EK!PX3mx$ga8uF^( z2DEwH{7&uy=>yo}Ni*Y7HOHyvCroKcvrY6M(FEK?`s_bC4lS3Pm_Hn}Ns55o)Wafv=ATErf?T43t&(fhbB@`rk;0y6qOZa__+gqA*1 z&4~IZvHmS98vPv>4JPX8-uv`R*)E#aJrsw1R@rLzbr2)UtolEmJLsjmIHn_-X&2QI z&DE}GR$SHC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tUdI1!kZJIVkXNA>1mUmbGGsUjknpJI4^Pjc z%5{@oGXJ?-MVGXM)~ulPGEK$PbY=7>Di&!+d@s$;&~4Xfu1I%)aPT{N_$ob8q(|dU zxPFb&aH2?;M!%x;N4nt^N~6VSXx$1*qG9uDCqE`q$ABIzeTh(MK)fKA% Hh=lwLHOd;> literal 0 HcmV?d00001 diff --git a/cmake-build-debug/CMakeFiles/C_primer.dir/11/11/11.24.c.o b/cmake-build-debug/CMakeFiles/C_primer.dir/11/11/11.24.c.o new file mode 100644 index 0000000000000000000000000000000000000000..9b6a473703a82b155b6c96ce27edd8e0cca91564 GIT binary patch literal 3128 zcmbVOZ*0_L7=L?r?cH|U-Pi^~)TAa1fw(}{%`+;31NZ+E8 z65YDm^-%e!IPUF-6#^a4oaR(c-U^x1hXe(@McqLQ8$%M)J!?#|CZzlLq& z>^Xgp#Lx4U5F11G&4K=*>o2DlrWcu+^uismk#c(8(dO^Wt*oq+OA8P@xf)#cFUyDT ziMy8K=Of@vE{fAP`(FFp*)SfJVHg;?Q5Yv686`c7zKA!3mc4`n~42B8Ebm%@z^@18CoGAfUBA7-WZJSj_!#*y{Wh5IXF#%T_iwF zy)7`-H4jH!ZHk6xTi>O%d?<|;~>E4v&CU`7#NN2$Htlia^Kg8(~k`#36|49 z-vZ(K#bwSFkAlj(h6;0RCtgFC5DZ-E-j5oGw?7!Xv@m%B)wtsfUYeiGpxT5g3GD`% z4Y6gAxp(nG!n434SI~I?oE%dp0*i!63dbw2 zUK$t@iqw!;jTz{9(Q_wv2uZ=pjuJPzqCRrrNs zWD^Eis=q&VTpH+oB`pme?@LP(QJ`gQq7iW*g?HN-D#*Q$4cF$Ls3#}inRo_#&Lano zgA7-7F6#bVcr91{PYe!sq*erjg)##T5`=LVf^mp=xX{-zbs?(oS0-My-umtk=n@bf z>)2jcJ2u;9AXwN`Xu=MoCj852!Um)!km#b{J?O7lURlhUe!`q?VwxJlky(gBfG2?F z?z`oA-%TVHYkD(qppkx-ked(_B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I`>Zh0eq^+G3Yst`!igJ3_k*myVn|kn`%k*+DTVej_q1nUE_PG zkE}QqO~8<2L2MI7L9;cH6PqZH}Hoj2Bc!Dh zI>@M_2{=3#Ex&^e`EB5!Z~O{4YBA21*ajRR`G*+? zX3IIoBfulz;8G(D7Kx<8BX9A@+dVSIE{?}HeX&fWQrR+zWJ(zoxqTQVNir>2$w^8! fC#7XA562NShEh6(Du{u9>Q>s(x_+6mY^2EF5cWsW literal 0 HcmV?d00001 diff --git a/cmake-build-debug/CMakeFiles/C_primer.dir/11/11/11.26.c.o b/cmake-build-debug/CMakeFiles/C_primer.dir/11/11/11.26.c.o new file mode 100644 index 0000000000000000000000000000000000000000..542396daba3409a8cceabdbba89fea89931fbdbe GIT binary patch literal 2960 zcmbVOU2GIp6u#5#>`uF|Eg%7+BuhjsiJj?|qTxqup{rA&anph>5*=q}r@O=M&a5-D zP)rpUU=DY}*kOIoWg1&pqe6 zXXc)JXTSa9w?9*i2?>S)+zI}khAbGg1zaTiE_7TBCvNeW$Oa}OUd!_|%{QlgZa`?- zk$myUvK?vfbA|8-ve?a77x_BbSrQRxn&J7bWmmW(ju+u1`TRS)&M3blQrh{3V|&X5 z#_<+-TpyPo0gpd2_pBD0RyIqmil&!Ju6dH4cl5=PiD%kD*SQw0xD=}o)2m91@GN`E zq0~6uKH5CcrBJXT{@@FEe;nwJczB6HMjY=)j#uXLX7nOCK12*pZ#L_uX6p^p!(<#! zr3M4-3k4gNxUwwni070}7!(r6dyC_3=lL`Dh!@n?)Qvdar5N7AJ>vPNn|FNP8yxRE zukY%A;u%f@b@^J$K4sZuO*=fwQv(s5!7O(ca42Yr%h+GOMX~p1R<$V?yAdYD`+1r- z?=Z(}ay)LbG-K6BCmHo$-LeD3`1@Prc%Sp6%fX>#Z1FDj4I*wcIH*0f21mQ~W=V4n_St9aZOkQfGfHsPjR#I?vR({H<&G8>}@#J`6vTM$WdP&R$EY^R1;T+uGA}`NidshVl_nemym|Ie3 zuNGeZCV=TlmrQ-d<%9VHX4bEo*^=q`+0#xdYv?u%88fR%SSLJ^*&rq|=Vmg$pUL!Y zdN8w2SdYWnA!BNNa(HthvnRbb{n(bV4Nv1TPYkgR?i$;GD{MPUWcH`ic)el|BTw?t zK%@kLENL68Co$Vaf$8*q+J`T|;dV>G_N`$#c&5QWfQfzyMKID$+-^-Wgco)pO%P8( zPjp-y-cMHQ&Cn{SWJwg4NL*Yzqm$Y78BEr>2fElP&O%SVOOAtZB!v{|(kB@DSl2jQ zQc5Hj8=)I1Yt(hSl09jksV4`llSZ+~uR0G2$sTOJ%3+`*Ki9>NsA;x!$k zri?m9t6|!{r#x%aRzF8s-ZPsj#SXkp9HeJtoH zMZ+nZGHyrZpkw<1+^BidtUFE9RSI?8pK{!Wr;O{y^OHrn$sNja%;e~yXgar3&dFZ6 z#=_{fdEbQ_4ZUXems(c6+#h_fSVOmLX4yV-T&u#2s_rtwX`aRfFfuVQa!i{XdnvCS zIabJP8f$t?ogASZYoAA)i;SIJOlFmNS%3QMJxqpHFPYm6M#19Y{ zh;)G^Aw~3Snh_om%?+G=H*I7;oH_2jck?i84NPA`>M^RFnsYlCL|sNM>M8D`E+ZE; z9d|)nNz}j~3R*=`ZNlplOqlK!de@|+4-iEt4}q(mcACdzZBEbxF{x{6T6egL@6m1#dPuz zIg-*>B1yX%or|6@BXXr0Nc0wND_HIbr!2Jp&XloV&@;1^v zLwP$Pfrwivln{YkV=;Sg%-$HYx5jK%*YMYq{wm6J zQsnS#G|YxUXQbKkJ*EXm2w|SD8#T?S*0d?zs^bK~<06h+p%u+nTDn`tN{sytb1t>= literal 0 HcmV?d00001 diff --git a/cmake-build-debug/CMakeFiles/C_primer.dir/11/11/11.27.c.o b/cmake-build-debug/CMakeFiles/C_primer.dir/11/11/11.27.c.o new file mode 100644 index 0000000000000000000000000000000000000000..7edd4fbf14960186fca35f208fdf2bdcd39b1693 GIT binary patch literal 3168 zcmbVOZ)_7~7=Lf=d+q4f4h9)0A;kLFSlS*y(M6E*s#$$a%e9+oSEZySr|~ zKt`CD&9P*BKpHjJkCEs-UjwQyBWqc?`km6*2K%jPAV8# zi}xJEYh^Hh{6{>yzPzl|;u$q~57jf^ideHg>r{Tt^}fOI&a?cUf5lUBS*XjB3i^bm z$0g}tf926|d|1B)nehhT;TfBO_sd>UO?_%gN*M4qoP^qb?qztr4DS}hV=4jIRC$iF z+GSf$KtPdU-7HYKxszC;{|$ zFlDH>d(o^2MZo)7OfPywZb_Ukl&;~*#HCOE26CRD9D*1DV!nWw8=v>`WKJkfFLJX& z@%GCQ1-K>1v4hzvu;9S_BlkYR4yvSogXxvsm^-vA?!6H>?}fzZqB#9o{-satjDSzj zE!7C_hzBQfM%)a>)TE~CaCHVJG%FPx>k6(TJIr7_rLXOXWLlYc5sWTp$27O zE2T0NSy9xyrN+Amx1QVKZ>BE)xzqkTQ~suwhyClh4X_n;VQ_8WdpEoMUB0J$ZCeJK zpN8*=YZs|wrh#U-wo2Zp~4+~0!NAouDXjuJ*au6P;*@@O`Sm1`;Ma)rxaA{F_yTyU{2li zBFy=RAWTyq=1`osd4fT7ybPhHV^I4O7eM!RW4VN4O){Zd*gqT^*o> zJNJe=J31dDks~IAMXaQm&nf9he@-c6RoyZp&uW%fh($80Z0M3AO7_1auK!2c%(Z+7I32nK|64(>S@q0qEGf_O;i>o_~(Q-YUHzi3|g@gV5< z4+X#J*k@Qfc3mql5Ox@vu=kh=yA4g)iOdAE3bFq^7_y4Wm2s~O6K=AJYijU#7a$5T zwgQ*#Iu(}xH<3Pn(`$A68=ZY5PJ zTEEWwF{R_w?~Txn`~uyUpe=)R;}w^6g;G~TH*MsR{djJ3c literal 0 HcmV?d00001 diff --git a/cmake-build-debug/CMakeFiles/C_primer.dir/11/11/11.28.c.o b/cmake-build-debug/CMakeFiles/C_primer.dir/11/11/11.28.c.o new file mode 100644 index 0000000000000000000000000000000000000000..d36e3b65ab2738db63be3e8e39843d67ccf366aa GIT binary patch literal 3072 zcmbVOZ)_A*5TCufy*oI1J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1;5iAMdYpe+wlJBF%{pmS}HiYpT zZmr3e-SIUxTKu+TiN_2r(N;d!Wv)PQDm d)+%@=nT6+0w@ZX!x+3c(2W{k)>#|vde*hP{=>Y%$ literal 0 HcmV?d00001 diff --git a/cmake-build-debug/CMakeFiles/C_primer.dir/11/11/11.29.c.o b/cmake-build-debug/CMakeFiles/C_primer.dir/11/11/11.29.c.o new file mode 100644 index 0000000000000000000000000000000000000000..0c0262a483a8829cf2d923fd76542631d36075ed GIT binary patch literal 6856 zcmbVReQXrR6`!*`=d%sA!ErDNO_me~DBSr269VNDzK)y^Xo!JeLz~U|y!Kse-(Btl zNCh<)|^Lrn^dGls=Z)g4HzyJDCr4XKSfeX$GoQLS5;lwc;r;qRy$J6z;;UxPM zFgOLB(>PAov*w;G0|;H;8tUF!#D&%y(rytSQMNV;kt0=w*iWKx=z27hO~(@htZ?%c zc;2Fc;n-De%fhv+&|skUZ}F0!>sA7oir614$1;w zJkg&d2RC0W=kppzzruX)Gzq~(CHXLDE5gn9bLJbMNyL$#SkMajp_mtekmOmOQAg~@JConOj`y7|80;#={5@@1b$l^pLY z%y*E}dgK%NqRC<8mDO{J-SI@9u5VnYj%d|%8)>Y(3O-tjS24dlMXvFhF}**H*{}oL z>-kaUTg807nKmCoQ6ogG&?Z?}e?#$v#ptfzIP<;7S%kqy$F(W)YljUcJNHTy%VQHz zIO(tBLM8LvCd4^NGtjfM_iSSQDkP>$%gs{z5yDss{X4To)99n3xqCO7U#orbqojR>w(k&9b8 zY!2?wUY>mkkaH7iNCA52T!QTMf_6HW`!RL9k*+O;?$kZ zF*tBt)E&GXr6E=L$Tq6T(PHGp5~`XbVl*^X@U1($>G;NcXsq+VIS=A?7vq4wt|C`% z_u}DFT=gXeZD%@}oV^mQ*3{>>JHNH zK-;Y%HG9vSuc$LG~xp7Qc~Qtht$}6PM2Fc!|POq)0@k;^3`zBW4$UER7%M`FtoBtcRBt1z(Tag@ z0;|T3Q^V9qt=i5KW7GQMX#@=$*=UT0L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DvgY?X&v zo9^Ak`HzBe9{nw5UFQ4Jyes%P?+sq&htgnP;MuF32edT2zXTS1ogQyfE1dt4x1AT2 z^R#-7x4n%be#kr1oTqsdrGDZ4Ym$Res+y5}FL)G&dS5~mI+!5pC$iP)2!yTr!wq_{LC5duw)i_6bY}Qxm4PG3 vg<_1`f_o(kN0cFsFvCEQX=My+B4eaYC(G#Y&Uca&R#)7))kmk!NI?Y{;TM*@1;;as&(i z{#th^DdoNV4~5v-zY8LYf)Ue{P4RhfdR#rAL6Js~ZNS tfx)M12c;E(G!sZba`H<~b4JCKOXG7H{bWYH*enT^K?JmD7#fK z4lS@EUu|CUGGP=O3RL(_i0ZT*KHU^V6?UutwgYtsVvVx`f7zDZ8QcLX)B zVjGW{Q*K4mWlcZECDR*S*XTEm?o*O7VdHCaDsjY)262&m0l^w$CQe!>ux!OKu$-ay zepjjSrj=jarl6;Gl}*22xqhMRyo!s-cKwIF?suGfnSU5d)cc0>uuas4-+9WMH8s25 zFfE&Yx87#={cdk(Fc|zPrc!KY&Hby+J4+b7f=Z+w-db;l)jP%LJG2nDpeSx!ruj2y z?0kl0#+LB>(07_jh%;hZwtmtHWFg)aS@snliQ8P-Um&xBu1u}+MR0il*n+a diff --git a/cmake-build-debug/CMakeFiles/C_primer.dir/count_all_codes.c.o b/cmake-build-debug/CMakeFiles/C_primer.dir/count_all_codes.c.o new file mode 100644 index 0000000000000000000000000000000000000000..285260630092b08ea2d8e98ee8fab5c2f5c9afae GIT binary patch literal 7640 zcmcgxdvIG+k*Xmw&Dm!r>Gc&|T<pwS;)K6befi^y<^eFWuZnz4eFPi6Wv zquO8D&ps`0^pq`aSTmDEJn=+tvCoY5_U04!GQN%vtlxU`wAL?lTwW##?PFE`z?$K* z>@Sr`W~pE8?>9PMCpG+}ms(i&6+%cGy`(=ZT1l(@J+1A3s^h%FZ#$_NtNcZCxpczJ zL+L6`pMLlK!&2yJ8eq`>WIOEY@zG`78aY_;S%$wZGOXe?R;y z{aN?rF1g+v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_YnI5eecc&U_Fm>!Nxt4%E^MCSn*YQXw7I8*; AtpET3 diff --git a/cmake-build-debug/Testing/Temporary/LastTest.log b/cmake-build-debug/Testing/Temporary/LastTest.log index a1885d6..be0feaa 100644 --- a/cmake-build-debug/Testing/Temporary/LastTest.log +++ b/cmake-build-debug/Testing/Temporary/LastTest.log @@ -1,3 +1,3 @@ -Start testing: Jan 17 16:28 CST +Start testing: Jan 21 12:47 CST ---------------------------------------------------------- -End testing: Jan 17 16:28 CST +End testing: Jan 21 12:47 CST diff --git a/cmake-build-debug/build.ninja b/cmake-build-debug/build.ninja index 4627232..0dd730c 100644 --- a/cmake-build-debug/build.ninja +++ b/cmake-build-debug/build.ninja @@ -49,8 +49,8 @@ cmake_ninja_workdir = /Users/tgspock/Documents/GitHub/learn_c_primer.github.io/c build cmake_object_order_depends_target_C_primer: phony || CMakeFiles/C_primer.dir -build CMakeFiles/C_primer.dir/11/11/11.22.c.o: C_COMPILER__C_primer_unscanned_Debug /Users/tgspock/Documents/GitHub/learn_c_primer.github.io/11/11/11.22.c || cmake_object_order_depends_target_C_primer - DEP_FILE = CMakeFiles/C_primer.dir/11/11/11.22.c.o.d +build CMakeFiles/C_primer.dir/11/11/11.30.c.o: C_COMPILER__C_primer_unscanned_Debug /Users/tgspock/Documents/GitHub/learn_c_primer.github.io/11/11/11.30.c || cmake_object_order_depends_target_C_primer + DEP_FILE = CMakeFiles/C_primer.dir/11/11/11.30.c.o.d FLAGS = -g -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.1.sdk -mmacosx-version-min=12.7 -fcolor-diagnostics INCLUDES = -I/Users/tgspock/Documents/GitHub/learn_c_primer.github.io/9 OBJECT_DIR = CMakeFiles/C_primer.dir @@ -71,7 +71,7 @@ build CMakeFiles/C_primer.dir/11/11/s_gets.c.o: C_COMPILER__C_primer_unscanned_D ############################################# # Link the executable C_primer -build C_primer: C_EXECUTABLE_LINKER__C_primer_Debug CMakeFiles/C_primer.dir/11/11/11.22.c.o CMakeFiles/C_primer.dir/11/11/s_gets.c.o +build C_primer: C_EXECUTABLE_LINKER__C_primer_Debug CMakeFiles/C_primer.dir/11/11/11.30.c.o CMakeFiles/C_primer.dir/11/11/s_gets.c.o FLAGS = -g -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.1.sdk -mmacosx-version-min=12.7 OBJECT_DIR = CMakeFiles/C_primer.dir POST_BUILD = : diff --git a/count_all_codes.c b/count_all_codes.c new file mode 100644 index 0000000..8227a36 --- /dev/null +++ b/count_all_codes.c @@ -0,0 +1,104 @@ +#include +#include +#include +#include + +// 定义文件路径的最大长度 +#define MAX_PATH_LENGTH 256 + +// 定义每行代码的最大长度 +#define MAX_LINE_LENGTH 1024 + +// 函数声明 +int count_lines_in_file(const char *filename); +int count_lines_in_folder(const char *folder_path); + +int main() { + // 文件夹路径 + const char *folder_path = "/Users/tgspock/Documents/GitHub"; + + // 统计文件夹中的代码行数 + int total_lines = count_lines_in_folder(folder_path); + + // 打印总行数 + printf("Total Lines: %d\n", total_lines); + + return EXIT_SUCCESS; +} + +// 函数实现:统计文件夹中的代码行数(递归) +int count_lines_in_folder(const char *folder_path) { + // 用于拼接文件路径的缓冲区 + char file_path[MAX_PATH_LENGTH]; + + // 记录总行数 + int total_lines = 0; + + // 打开文件夹 + DIR *folder = opendir(folder_path); + + // 检查文件夹是否成功打开 + if (folder == NULL) { + perror("Unable to open folder"); + return -1; + } + + // 读取文件夹中的文件和子文件夹 + struct dirent *entry; + while ((entry = readdir(folder)) != NULL) { + // 忽略 "." 和 ".." + if (strcmp(entry->d_name, ".") == 0 || strcmp(entry->d_name, "..") == 0) { + continue; + } + + // 构建文件路径 + snprintf(file_path, MAX_PATH_LENGTH, "%s/%s", folder_path, entry->d_name); + + // 检查是否为子文件夹 + if (entry->d_type == DT_DIR) { + // 递归调用统计子文件夹中的代码行数 + total_lines += count_lines_in_folder(file_path); + } else if (strstr(entry->d_name, ".c") != NULL) { + // 统计C语言文件中的行数 + int lines_in_file = count_lines_in_file(file_path); + printf("File: %s, Lines: %d\n", entry->d_name, lines_in_file); + + // 累加总行数 + total_lines += lines_in_file; + } + } + + // 关闭文件夹 + closedir(folder); + + return total_lines; +} + +// 函数实现:统计文件中的行数 +int count_lines_in_file(const char *filename) { + // 打开文件 + FILE *file = fopen(filename, "r"); + if (file == NULL) { + perror("Unable to open file"); + return -1; + } + + // 计数器 + int line_count = 0; + + // 缓冲区,用于读取每行的内容 + char line[MAX_LINE_LENGTH]; + + // 逐行读取文件内容 + while (fgets(line, MAX_LINE_LENGTH, file) != NULL) { + // 如果该行不是空行或注释行,则增加计数器 + if (strlen(line) > 1 && line[0] != '/' && line[1] != '/') { + line_count++; + } + } + + // 关闭文件 + fclose(file); + + return line_count; +}