From 9efea988c7cf7144efe67c720ccae8d5fe913d30 Mon Sep 17 00:00:00 2001 From: Tingyu Meng <29924168887@qq.com> Date: Tue, 18 Apr 2023 20:42:56 +0800 Subject: [PATCH 1/8] new commit_2 --- yesyes.md | 1 + 1 file changed, 1 insertion(+) create mode 100644 yesyes.md diff --git a/yesyes.md b/yesyes.md new file mode 100644 index 0000000..377b148 --- /dev/null +++ b/yesyes.md @@ -0,0 +1 @@ +/* I love China*/ \ No newline at end of file From b170ba60a33fe64999a2fd9ece3f7e1e13e6b4f4 Mon Sep 17 00:00:00 2001 From: Tingyu Meng <29924168887@qq.com> Date: Sat, 22 Apr 2023 18:21:04 +0800 Subject: [PATCH 2/8] mty. --- mty.md | 119 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 119 insertions(+) create mode 100644 mty.md diff --git a/mty.md b/mty.md new file mode 100644 index 0000000..3109974 --- /dev/null +++ b/mty.md @@ -0,0 +1,119 @@ + +//1 函数功能:输入n个学生的m门课成绩 +void ReadScore(STU stu[], int n, int m) + +//2 函数功能:计算每个学生各门课程的总分和平均分 +void AverSumofEveryStudent(STU stu[], int n, int m) + +//3 函数功能:计算每门课程的总分和平均分 +void AverSumofEveryCourse(STU stu[], int n, int m) + +//4 函数功能:按选择法将数组sum的元素值排序 +void SortbyScore(STU stu[],int n,int m,int (*compare)(float a,float b)) +{ + int i, j, k, t; + for (i=0; i Date: Sat, 22 Apr 2023 20:48:30 +0800 Subject: [PATCH 3/8] 4.mty --- .vscode/c_cpp_properties.json | 18 +++++++++++++++++ .vscode/launch.json | 24 ++++++++++++++++++++++ .vscode/settings.json | 38 +++++++++++++++++++++++++++++++++++ 4.md | 24 ++++++++++++++++++++++ 4 files changed, 104 insertions(+) create mode 100644 .vscode/c_cpp_properties.json create mode 100644 .vscode/launch.json create mode 100644 .vscode/settings.json create mode 100644 4.md diff --git a/.vscode/c_cpp_properties.json b/.vscode/c_cpp_properties.json new file mode 100644 index 0000000..cea4d3f --- /dev/null +++ b/.vscode/c_cpp_properties.json @@ -0,0 +1,18 @@ +{ + "configurations": [ + { + "name": "windows-gcc-x64", + "includePath": [ + "${workspaceFolder}/**" + ], + "compilerPath": "gcc", + "cStandard": "${default}", + "cppStandard": "${default}", + "intelliSenseMode": "windows-gcc-x64", + "compilerArgs": [ + "" + ] + } + ], + "version": 4 +} \ No newline at end of file diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 0000000..ad33348 --- /dev/null +++ b/.vscode/launch.json @@ -0,0 +1,24 @@ +{ + "version": "0.2.0", + "configurations": [ + { + "name": "C/C++ Runner: Debug Session", + "type": "cppdbg", + "request": "launch", + "args": [], + "stopAtEntry": false, + "externalConsole": true, + "cwd": "c:/Users/孟婷玉/Desktop/学生成绩管理系统/System", + "program": "c:/Users/孟婷玉/Desktop/学生成绩管理系统/System/build/Debug/outDebug", + "MIMode": "gdb", + "miDebuggerPath": "gdb", + "setupCommands": [ + { + "description": "Enable pretty-printing for gdb", + "text": "-enable-pretty-printing", + "ignoreFailures": true + } + ] + } + ] +} \ No newline at end of file diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..65c81b6 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,38 @@ +{ + "C_Cpp_Runner.cCompilerPath": "gcc", + "C_Cpp_Runner.cppCompilerPath": "g++", + "C_Cpp_Runner.debuggerPath": "gdb", + "C_Cpp_Runner.cStandard": "", + "C_Cpp_Runner.cppStandard": "", + "C_Cpp_Runner.msvcBatchPath": "", + "C_Cpp_Runner.useMsvc": false, + "C_Cpp_Runner.warnings": [ + "-Wall", + "-Wextra", + "-Wpedantic", + "-Wshadow", + "-Wformat=2", + "-Wconversion", + "-Wnull-dereference", + "-Wsign-conversion" + ], + "C_Cpp_Runner.enableWarnings": true, + "C_Cpp_Runner.warningsAsError": false, + "C_Cpp_Runner.compilerArgs": [], + "C_Cpp_Runner.linkerArgs": [], + "C_Cpp_Runner.includePaths": [], + "C_Cpp_Runner.includeSearch": [ + "*", + "**/*" + ], + "C_Cpp_Runner.excludeSearch": [ + "**/build", + "**/build/**", + "**/.*", + "**/.*/**", + "**/.vscode", + "**/.vscode/**" + ], + "C_Cpp_Runner.useAddressSanitizer": false, + "C_Cpp_Runner.showCompilationTime": false +} \ No newline at end of file diff --git a/4.md b/4.md new file mode 100644 index 0000000..a56f960 --- /dev/null +++ b/4.md @@ -0,0 +1,24 @@ +//4 函数功能:按选择法将数组sum的元素值排序 +void SortbyScore(STU stu[],int n,int m,int (*compare)(float a,float b)) +{ + int i, j, k, t; + for (i=0; i Date: Sat, 22 Apr 2023 20:58:17 +0800 Subject: [PATCH 4/8] 4.mty --- 8.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 8.md diff --git a/8.md b/8.md new file mode 100644 index 0000000..45a6711 --- /dev/null +++ b/8.md @@ -0,0 +1,16 @@ +// 8交换两个长整型数据 +void SwapLong(long *x, long *y) +{ +long temp; +temp = *x; +*x = *y; +*y = temp; +} +// 交换两个字符串 +void SwapChar(char x[], char y[]) +{ +char temp[MAX_LEN]; +strcpy(temp, x); +strcpy(x, y); +strcpy(y, temp); +} From fd83dc76565ce357a3628e2a024c9676aa71ff6d Mon Sep 17 00:00:00 2001 From: Tingyu Meng <29924168887@qq.com> Date: Sat, 22 Apr 2023 21:39:14 +0800 Subject: [PATCH 5/8] 8.mty --- 8.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/8.md b/8.md index 45a6711..d5d13a4 100644 --- a/8.md +++ b/8.md @@ -1,4 +1,4 @@ -// 8交换两个长整型数据 +/// 8交换两个长整型数据 void SwapLong(long *x, long *y) { long temp; From 8099ea26c5c340c080ab88faeff9b78ed8c28cfb Mon Sep 17 00:00:00 2001 From: Tingyu Meng <29924168887@qq.com> Date: Sat, 22 Apr 2023 21:42:50 +0800 Subject: [PATCH 6/8] 12.mty --- 12.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 12.md diff --git a/12.md b/12.md new file mode 100644 index 0000000..b9a61dc --- /dev/null +++ b/12.md @@ -0,0 +1,14 @@ +// 12函数功能:按学号查找学生成绩并显示查找结果 +void SearchbyNum(STU stu[], int n, int m) +{ + long number; + int i, j; + printf("Input the number you want to search:"); + scanf("%ld", &number); + + /* ---------- begain ---------- */ + + /* ----------- end ----------- */ + + printf("\nNot found!\n"); +} \ No newline at end of file From f6600e266eee4967d28e7414541e4611e76e55c7 Mon Sep 17 00:00:00 2001 From: Tingyu Meng <29924168887@qq.com> Date: Sun, 23 Apr 2023 23:53:27 +0800 Subject: [PATCH 7/8] draw --- test1.drawio.svg | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 test1.drawio.svg diff --git a/test1.drawio.svg b/test1.drawio.svg new file mode 100644 index 0000000..e69de29 From 6cdaf5da4e8c377867ac3c0f6bd284929d88d171 Mon Sep 17 00:00:00 2001 From: Tingyu Meng <29924168887@qq.com> Date: Tue, 25 Apr 2023 15:07:17 +0800 Subject: [PATCH 8/8] draw --- table.md | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 table.md diff --git a/table.md b/table.md new file mode 100644 index 0000000..e69de29