본문내용
#include
#include
#include
#include
#include
#define MAX 1024
//=======================구조체 부분===========================
struct Imformation
{
char name[32];
int no, rank;
float kor, eng, math, total, avg; //변수선언
};
//=======================구조체선언 끝==========================
//======================프로토타입 선언부분======================
int Input();
int Insertion();
int Search();
int Delete();
int Rank_Out();
int Save();
int Quit();
int Wait();
int Quit_Wait();
int Main_Print_User();
int Change_Password();
int Input_Password();
int Main_Print_Admin();
int Auto_Password();
void Mode_Choise();
//=======================프로토타입 선언 끝=======================
//==========================main함수 부분==========================
void main()
{
Mode_Choise();
Input_Password(); //비밀번호 확인을 위한 함수 호출
}
//========================메인함수의 끝===========================
//========================모드선택 부분============================
void Mode_Choise()
{
char mode;
int num;
while(1)
{
printf("\n\n");
printf("┌─────────────────────────────────┐\n");
printf("│ 관리자모드는 A(a), 사용자모드는 U(u)를 입력해주십시오 │\n");
printf("└─────────────────────────────────┘\n");
printf("\n\n");
printf("Mode Code = ");
scanf("%c", &mode);
if((mode=='a')||(mode=='A'))
{
num=1;
}
else if((mode=='u')||(mode=='U'))
{
num=2;
}
else
{
system("cls");
continue;
}
switch(num)
{
case 1:
{
Input_Password();
Main_Print_Admin();
}
case 2:
{
Input_Password();
Main_Print_User();
}
}
}
}
//========================모드선택부분 끝=======================
//========================Auto_Password함수 시작=================
int Auto_Password()
{
FILE *fp; //파일 포인터 선언
char auto_pw[100]="password";
if((fp=fopen("password.dat", "w")) == NULL ) //파일 읽기 전용으로 열기 & 파일 존재 여부 확인
{
printf("파일이 존재하지 않습니다.\n");
return 0; //리턴값없이 끝냄
}
fprintf(fp,"%s",auto_pw);
fclose(fp);
}
//========================Auto_Password함수 시작================
//====================패스워드입력함수부분=========================
int Input_Password()
#include
#include
#include
#include
#define MAX 1024
//=======================구조체 부분===========================
struct Imformation
{
char name[32];
int no, rank;
float kor, eng, math, total, avg; //변수선언
};
//=======================구조체선언 끝==========================
//======================프로토타입 선언부분======================
int Input();
int Insertion();
int Search();
int Delete();
int Rank_Out();
int Save();
int Quit();
int Wait();
int Quit_Wait();
int Main_Print_User();
int Change_Password();
int Input_Password();
int Main_Print_Admin();
int Auto_Password();
void Mode_Choise();
//=======================프로토타입 선언 끝=======================
//==========================main함수 부분==========================
void main()
{
Mode_Choise();
Input_Password(); //비밀번호 확인을 위한 함수 호출
}
//========================메인함수의 끝===========================
//========================모드선택 부분============================
void Mode_Choise()
{
char mode;
int num;
while(1)
{
printf("\n\n");
printf("┌─────────────────────────────────┐\n");
printf("│ 관리자모드는 A(a), 사용자모드는 U(u)를 입력해주십시오 │\n");
printf("└─────────────────────────────────┘\n");
printf("\n\n");
printf("Mode Code = ");
scanf("%c", &mode);
if((mode=='a')||(mode=='A'))
{
num=1;
}
else if((mode=='u')||(mode=='U'))
{
num=2;
}
else
{
system("cls");
continue;
}
switch(num)
{
case 1:
{
Input_Password();
Main_Print_Admin();
}
case 2:
{
Input_Password();
Main_Print_User();
}
}
}
}
//========================모드선택부분 끝=======================
//========================Auto_Password함수 시작=================
int Auto_Password()
{
FILE *fp; //파일 포인터 선언
char auto_pw[100]="password";
if((fp=fopen("password.dat", "w")) == NULL ) //파일 읽기 전용으로 열기 & 파일 존재 여부 확인
{
printf("파일이 존재하지 않습니다.\n");
return 0; //리턴값없이 끝냄
}
fprintf(fp,"%s",auto_pw);
fclose(fp);
}
//========================Auto_Password함수 시작================
//====================패스워드입력함수부분=========================
int Input_Password()
추천자료
C언어 중간고사 성적을 읽어들여 평균, 분산, 각 점수대별 인원을 `*` 로 출력
매스 커뮤니케이션이 학생들의 학업 성적에 미치는 영향
현대사회에서 광고의 기능과 성적으로 상품화되고 있는 것에 대한 양상과 앞으로의 추세에 대...
KIRIS(켄터키주 교육성적 정보시스템) 발표자료
KIRIS(켄터키주 교육성적 정보시스템) PPT 자료
[청소년 성적 소수자] 청소년 성소수자에 대한 개념과 이론 및 정책적 제언
씨언어 및 API 를 이용한 성적처리 및 그래프 그리기
[노인복지론] 노인의 성적 권리에 대한 복지 철학적 이해
[보육교사론] 보육교사의 역할에 대해 Katz(1972)는 모성적 역할, 치료적 역할, 교수적 역...
청소년복지론- 청소년과 성 문제,청소년 성매매,성적 문제의 배경과원인,성 문제의 유형 및 ...
[성사랑사회A형] 참고도서가 다루고 있는 사람들의 삶과 나의 삶을 함께 참고하여 우리사회에...
[레포트]영어몰입(early immersion)교육이 초등학교 학생들의 일반교과 성적에 미치는 영향에...
프로이드의 정신분석이론을 조사정리하고 심리성적 발달단계를 통해 가장 중요한 발달단계 제시
소개글