third commit

master
idealthm 6 years ago
parent df448a3ce0
commit 4e54f33a67

@ -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)

@ -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();

@ -5,7 +5,20 @@
#include <time.h>
#include <conio.h>
//#include <unistd.h>
#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<sum;i++){
if(strcmp(d,tem[i].stnum)==0){
printf("学号:%s\t姓名:%s\t性别:%s\t年龄:%d\t备注:%s\n",tem[i].stnum,tem[i].stname,tem[i].sex,tem[i].age,tem[i].detail);
@ -336,7 +352,6 @@ void demand()
case '2':
printf("请输入姓名:");
scanf("%s",d);
printf("\n");
for(int i=0;i<sum;i++){
if(strcmp(d,tem[i].stname)==0){
printf("学号:%s\t姓名:%s\t性别:%s\t年龄:%d\t备注:%s\n",tem[i].stnum,tem[i].stname,tem[i].sex,tem[i].age,tem[i].detail);
@ -349,7 +364,6 @@ void demand()
case '3':
printf("请输入性别:");
scanf("%s",d);
printf("\n");
for(int i=0;i<sum;i++){
if(strcmp(d,tem[i].sex)==0){
printf("学号:%s\t姓名:%s\t性别:%s\t年龄:%d\t备注:%s\n",tem[i].stnum,tem[i].stname,tem[i].sex,tem[i].age,tem[i].detail);
@ -362,7 +376,6 @@ void demand()
case 4:
printf("请输入年龄:");
scanf("%d",&c);
printf("\n");
for(int i=0;i<sum;i++){
if(c==tem[i].age){
printf("学号:%s\t姓名:%s\t性别:%s\t年龄:%d\t备注:%s\n",tem[i].stnum,tem[i].stname,tem[i].sex,tem[i].age,tem[i].detail);
@ -425,7 +438,7 @@ int password()
printf("是否继续输入");
printf("按Y则继续输入\n否则退出!\n");
si=getch();
if(si!='Y')return 0;
if(si=='Y'||si=='y'){}else return 0;
}
printf("请输入密码!\n");
scanf("%s",mi);

@ -29,7 +29,7 @@ IncludeVersionInfo=0
SupportXPThemes=0
CompilerSet=0
CompilerSettings=0000000000000000001000000
UnitCount=2
UnitCount=1
[VersionInfo]
Major=1
@ -50,8 +50,8 @@ ProductVersion=
AutoIncBuildNr=0
SyncProduct=1
[Unit1]
FileName=main.c
[Unit2]
FileName=课程设计源代码_班级档案管理系统_计算机大类1804_18408000416_钱裕隆.c
CompileCpp=0
Folder=¿ÎÉè
Compile=1
@ -60,8 +60,8 @@ Priority=1000
OverrideBuildCmd=0
BuildCmd=
[Unit2]
FileName=head.h
[Unit1]
FileName=课程设计源代码_班级档案管理系统_计算机大类1804_18408000416_钱裕隆.c
CompileCpp=0
Folder=¿ÎÉè
Compile=1

@ -1,11 +1,11 @@
[Editors]
Focused=0
Order=1,0
Order=0
[Editor_0]
Open=1
Top=1
CursorCol=19
CursorRow=6
CursorCol=22
CursorRow=7
TopLine=1
LeftChar=1
[Editor_1]
Loading…
Cancel
Save