목차
<< 성적 관리 프로그램>>
1. 입 력
2. 출 력
3. 수 정 밎 삭 제
4. 검 색
5. S A V E
6. L O A D
1. 입 력
2. 출 력
3. 수 정 밎 삭 제
4. 검 색
5. S A V E
6. L O A D
본문내용
#include
#include
#include
typedef struct Student{ // 학생 구조체
int id; // 학 번
char name[20]; // 이름
int Kor, Eng, Math; // 국어 영어 수학
int sum; // 합계
float Avg; // 평균
char Grade[3]; // 수, 우, 미, 양, 가
}Student;
int menu_ST();
void detailinput_ST(Student profile[100]);
void input_ST(Student profile[100]);
void output_ST(Student profile[100]);
void modedel_ST(Student profile[100]);
void search_ST(Student profile[100]);
void save_ST(Student profile[100]);
void load_ST(Student profile[100]);
int main(void){
Student profile[100];
int i;
for(i=0;i<100;i++)
profile[i].id = -1;
while(1){
system("cls");
switch(menu_ST()){
case 1:{
for(i=0;i<100;i++){
if(profile[i].id == -1){
input_ST(profile+i);
break;
}
}
break;
}
case 2:{
output_ST(profile);
break;
}
case 3:{
modedel_ST(profile);
break;
}
case 4:{
search_ST(profile);
break;
}
case 5:{
save_ST(profile);
break;
}
case 6:{
load_ST(profile);
break;
}
case 0:
exit(1);
}
system("pause");
}
return 0;
}
int menu_ST(){
int choice;
printf("<< 성적 관리 프로그램>>\n");
printf("1. 입 력\n");
printf("2. 출 력\n");
printf("3. 수 정 밎 삭 제\n");
printf("4. 검 색\n");
printf("5. S A V E\n");
printf("6. L O A D\n");
printf("0. 프 로 그 램 종 료\n");
printf("> ");
scanf("%d", &choice);
return choice;
}
#include
#include
typedef struct Student{ // 학생 구조체
int id; // 학 번
char name[20]; // 이름
int Kor, Eng, Math; // 국어 영어 수학
int sum; // 합계
float Avg; // 평균
char Grade[3]; // 수, 우, 미, 양, 가
}Student;
int menu_ST();
void detailinput_ST(Student profile[100]);
void input_ST(Student profile[100]);
void output_ST(Student profile[100]);
void modedel_ST(Student profile[100]);
void search_ST(Student profile[100]);
void save_ST(Student profile[100]);
void load_ST(Student profile[100]);
int main(void){
Student profile[100];
int i;
for(i=0;i<100;i++)
profile[i].id = -1;
while(1){
system("cls");
switch(menu_ST()){
case 1:{
for(i=0;i<100;i++){
if(profile[i].id == -1){
input_ST(profile+i);
break;
}
}
break;
}
case 2:{
output_ST(profile);
break;
}
case 3:{
modedel_ST(profile);
break;
}
case 4:{
search_ST(profile);
break;
}
case 5:{
save_ST(profile);
break;
}
case 6:{
load_ST(profile);
break;
}
case 0:
exit(1);
}
system("pause");
}
return 0;
}
int menu_ST(){
int choice;
printf("<< 성적 관리 프로그램>>\n");
printf("1. 입 력\n");
printf("2. 출 력\n");
printf("3. 수 정 밎 삭 제\n");
printf("4. 검 색\n");
printf("5. S A V E\n");
printf("6. L O A D\n");
printf("0. 프 로 그 램 종 료\n");
printf("> ");
scanf("%d", &choice);
return choice;
}
추천자료
C++ 성적처리 프로그램 term project
성적처리 프로그램
C언어 1000라인짜리 성적산출프로그램
무의탁 당뇨질환 어르신의 자가관리 능력 향상을 위한 지원프로그램에 관하여
성적프로그램, 오류시 프로그램 종료되는 소스 만들기
소켓 프로그램을 이용한 채팅프로그램과 구조체로 보내기(리눅스)
갱년기(폐경기) 여성의 건강관리 및 건강증진 프로그램 PPT
미래-아동건강교육-영유아를 위한 영양관리와 바른 식습관 교육,교육프로그램
성적처리 프로그램
스웨덴의 안전관리체계와 리드코핑(리드셰핑/Lidkoping)의 안전프로그램(선진 안전도시 경험...
★ 고전문학과 문화기행 - 울진 왕피천 ( 왕피천 개요, 왕피천 생태 탐방, 왕피천 관리 및 운...
아동복지정책에서 2013년 이후 방과후학교 활성화의 문제점과 개선방안이 계속 불거지고 있다...
사회복지 프로그램) 저소득 가정 아동, 청소년의 성적 향상을 위한 자기주도 학습 지원 프로그램