parent
89082ae613
commit
ad191d07f6
@ -0,0 +1,38 @@
|
||||
#include<stdio.h>
|
||||
#include<string.h>
|
||||
#include<stdlib.h>
|
||||
struct time {
|
||||
int hour;
|
||||
int minute;
|
||||
};
|
||||
struct Student {
|
||||
long int xuehao;
|
||||
char banji[10];
|
||||
char name[10];
|
||||
int time_hour;
|
||||
int time_minute;
|
||||
struct time begin,end;
|
||||
} ;
|
||||
struct Student student[30];
|
||||
static int i=0,j;
|
||||
void save();
|
||||
void insert();
|
||||
void end_money();
|
||||
void delete_student();
|
||||
void select_xuehao();
|
||||
void select_name();
|
||||
void select_banji();
|
||||
void show();
|
||||
|
||||
void save()
|
||||
{
|
||||
FILE *fp;
|
||||
int m;
|
||||
|
||||
fp=fopen("ѧÉú»ú·¿¹ÜÀí.txt","w");
|
||||
for(m=0;m<i;m++)
|
||||
{
|
||||
fprintf(fp,"%ld %s %s %d %d %d %d %d %d %d %d\n",student[m].xuehao,student[m].banji,student[m].name,student[m].begin.hour,student[m].begin.minute,student[m].end.hour,student[m].end.minute,student[m].time_hour,student[m].time_minute);
|
||||
}
|
||||
fclose(fp);
|
||||
}
|
Loading…
Reference in new issue