diff --git a/Makefile.win b/Makefile.win deleted file mode 100644 index 8ea9cfc..0000000 --- a/Makefile.win +++ /dev/null @@ -1,28 +0,0 @@ -# Project: -# Makefile created by Dev-C++ 5.7.1 - -CPP = g++.exe -CC = gcc.exe -WINDRES = windres.exe -OBJ = main.o -LINKOBJ = main.o -LIBS = -L"C:/Program Files (x86)/Dev-Cpp/MinGW32/lib" -L"C:/Program Files (x86)/Dev-Cpp/MinGW32/mingw32/lib" -static-libstdc++ -static-libgcc -g3 -INCS = -I"C:/Program Files (x86)/Dev-Cpp/MinGW32/include" -I"C:/Program Files (x86)/Dev-Cpp/MinGW32/mingw32/include" -I"C:/Program Files (x86)/Dev-Cpp/MinGW32/lib/gcc/mingw32/4.8.1/include" -CXXINCS = -I"C:/Program Files (x86)/Dev-Cpp/MinGW32/include" -I"C:/Program Files (x86)/Dev-Cpp/MinGW32/mingw32/include" -I"C:/Program Files (x86)/Dev-Cpp/MinGW32/lib/gcc/mingw32/4.8.1/include" -I"C:/Program Files (x86)/Dev-Cpp/MinGW32/lib/gcc/mingw32/4.8.1/include/c++" -BIN = .exe -CXXFLAGS = $(CXXINCS) -g3 -std=c99 -CFLAGS = $(INCS) -g3 -std=c99 -RM = rm.exe -f - -.PHONY: all all-before all-after clean clean-custom - -all: all-before $(BIN) all-after - -clean: clean-custom - ${RM} $(OBJ) $(BIN) - -$(BIN): $(OBJ) - $(CC) $(LINKOBJ) -o $(BIN) $(LIBS) - -main.o: main.c - $(CC) -c main.c -o main.o $(CFLAGS) diff --git a/head.h b/head.h deleted file mode 100644 index bd1ff0e..0000000 --- a/head.h +++ /dev/null @@ -1,14 +0,0 @@ -void menus(); -void input(); -void display(); -void save(); -int my_delete(); -void end(); -int password(); -int login(); -int cpassword(); -int alter(); -void demand(); -void _menus(); -void out(); -void _menus2(); diff --git a/计算机学院 面向过程程序设计(C语言) 课程设计(实训)报告模板.doc b/课程设计报告_班级档案管理系统_计算机大类1804_18408000416_钱裕隆.doc similarity index 100% rename from 计算机学院 面向过程程序设计(C语言) 课程设计(实训)报告模板.doc rename to 课程设计报告_班级档案管理系统_计算机大类1804_18408000416_钱裕隆.doc diff --git a/main.c b/课程设计源代码_班级档案管理系统_计算机大类1804_18408000416_钱裕隆.c similarity index 96% rename from main.c rename to 课程设计源代码_班级档案管理系统_计算机大类1804_18408000416_钱裕隆.c index d7fe276..667ea90 100644 --- a/main.c +++ b/课程设计源代码_班级档案管理系统_计算机大类1804_18408000416_钱裕隆.c @@ -5,7 +5,20 @@ #include #include //#include -#include "head.h" +void menus(); +void input(); +void display(); +void save(); +int my_delete(); +void end(); +int password(); +int login(); +int cpassword(); +int alter(); +void demand(); +void _menus(); +void out(); +void _menus2(); /* run this program using the console pauser or add your own getch, system("pause") or input loop */ int num=0;//ǰд洢 @@ -218,10 +231,14 @@ int alter() _menus2(); printf("ѡѡ\n"); char cho; - cho=getch(); + while(1){ + cho=getch(); + if(cho<'5'&&cho>'0')break; + else printf("ֵǷ룡\n"); + } + printf("ѡ%dѡ\n",cho-'0'); printf("\nݣ"); switch (cho){ - case '1': scanf("%s",t); while(fscanf(fp,"%s%s%s%d%s",tem[i].stnum,tem[i].stname,tem[i].sex,&tem[i].age,tem[i].detail)!=EOF){ @@ -323,7 +340,6 @@ void demand() case '1': printf("ѧ:"); scanf("%s",d); - printf("\n"); for(int i=0;i