From 7803a5da0ed4301a9b4692b3ab3814bd862f22b4 Mon Sep 17 00:00:00 2001 From: dylan <497357846@qq.com> Date: Mon, 10 Aug 2020 14:06:09 +0800 Subject: [PATCH 1/2] delete age.c fun.c --- age.c | 11 ----------- fun.c | 1 - 2 files changed, 12 deletions(-) delete mode 100644 age.c delete mode 100644 fun.c diff --git a/age.c b/age.c deleted file mode 100644 index 4f0b66b..0000000 --- a/age.c +++ /dev/null @@ -1,11 +0,0 @@ -#include "age.h" - -void setAge(uint8_t age) -{ - g_age = age; -} -uint8_t getAge(void) -{ - g_age = g_age+3; - return g_age+2; -} \ No newline at end of file diff --git a/fun.c b/fun.c deleted file mode 100644 index aa7a2f0..0000000 --- a/fun.c +++ /dev/null @@ -1 +0,0 @@ -#include "fun.h" \ No newline at end of file From 11d7e4b0922fb34b4ec7210bfb39255d27d4f9c2 Mon Sep 17 00:00:00 2001 From: dylan <497357846@qq.com> Date: Wed, 12 Aug 2020 08:20:29 +0800 Subject: [PATCH 2/2] dylan1: add study.c study.h --- study/study.c | 10 ++++++++++ study/study.h | 4 ++++ 2 files changed, 14 insertions(+) create mode 100644 study/study.c create mode 100644 study/study.h diff --git a/study/study.c b/study/study.c new file mode 100644 index 0000000..6cb7173 --- /dev/null +++ b/study/study.c @@ -0,0 +1,10 @@ +#include "study.h" +uint8_t g_class; +void study_set_class(uint8_t class) +{ + g_class = class; +} +uint8_t study_get_class(void) +{ + return g_class; +} \ No newline at end of file diff --git a/study/study.h b/study/study.h new file mode 100644 index 0000000..ae6d744 --- /dev/null +++ b/study/study.h @@ -0,0 +1,4 @@ +#include "stdio.h" + +void study_set_class(uint8_t class); +uint8_t study_get_class(void); \ No newline at end of file