From 2ab6fdedf1d0f35513f80f3765f8651f464bf914 Mon Sep 17 00:00:00 2001 From: psc2uwxgy Date: Fri, 22 Nov 2024 13:22:59 +0800 Subject: [PATCH] ADD file via upload --- 6th.cpp | 99 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 99 insertions(+) create mode 100644 6th.cpp diff --git a/6th.cpp b/6th.cpp new file mode 100644 index 0000000..ce9b70e --- /dev/null +++ b/6th.cpp @@ -0,0 +1,99 @@ +#include +#include +#include +#define MAX_STUDENTS 100 +typedef struct { + int ID; + char name[30]; + int classnumber; + float score1,score2,score3; +}student; + +int find(int ID,const char *name,student students[],int count){ + int i; + for(i=0;i