瀏覽代碼

dylan2: add classroom.c classroom.h

tags/V2.0
dylan2 dylan <497357846@qq.com> 4 年之前
父節點
當前提交
e69a1e39ab
共有 4 個文件被更改,包括 12 次插入12 次删除
  1. +0
    -11
      age.c
  2. +6
    -0
      classroom/classroom.c
  3. +6
    -0
      classroom/classroom.h
  4. +0
    -1
      fun.c

+ 0
- 11
age.c 查看文件

@@ -1,11 +0,0 @@
#include "age.h"

void setAge(uint8_t age)
{
g_age = age;
}
uint8_t getAge(void)
{
g_age = g_age+1;
return g_age+2;
}

+ 6
- 0
classroom/classroom.c 查看文件

@@ -0,0 +1,6 @@
#include "classroom.h"
uint16_t remain_classroom;
void cs_check_remain_classroom(void)
{
return remain_classroom;
}

+ 6
- 0
classroom/classroom.h 查看文件

@@ -0,0 +1,6 @@
#ifndef CLASSROOM_H
#define CLASSROOM_H

void cs_check_remain_classroom(void);
void cs_book_classroom(uint16_t classroom);
#endif

+ 0
- 1
fun.c 查看文件

@@ -1 +0,0 @@
#include "fun.h"

Loading…
取消
儲存