Updated files work and manage

This commit is contained in:
Sambo Chea 2020-08-01 22:20:12 +07:00
parent 9d9eb77688
commit 46cd2556bc
3 changed files with 14 additions and 11 deletions

View File

@ -2,26 +2,32 @@
#include "stdio.h" #include "stdio.h"
#include "./student_tag.h" #include "./student_tag.h"
void display() { void display()
{
printf("display..."); printf("display...");
} }
void search(int mark) { void search(int mark)
{
printf("search mark..."); printf("search mark...");
} }
void find_largest_average() { void find_largest_average()
{
printf("find largest average..."); printf("find largest average...");
} }
void find_failed_students() { void find_failed_students()
{
printf("find failed students..."); printf("find failed students...");
} }
void add_new(struct student_tag student) { void add_new(struct student_tag student)
{
printf("add new..."); printf("add new...");
} }
void quite() { void quite()
{
exit(1); exit(1);
} }

View File

@ -32,5 +32,4 @@ int main()
// show menu // show menu
menu(); menu();
} }

View File

@ -15,8 +15,6 @@ void menu()
printf("\n(6) Quit program\n\n"); printf("\n(6) Quit program\n\n");
} }
void choose_menu(int menu) void choose_menu(int menu)
{ {
@ -36,7 +34,7 @@ void choose_menu(int menu)
break; break;
case MENU_5: case MENU_5:
struct person_tag info = {"1","Sambo"}; struct person_tag info = {"1", "Sambo"};
struct student_tag std = {.student_info = info}; struct student_tag std = {.student_info = info};
add_new(std); add_new(std);
break; break;