C언어 1000라인짜리 성적산출프로그램
닫기
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
해당 자료는 7페이지 까지만 미리보기를 제공합니다.
7페이지 이후부터 다운로드 후 확인할 수 있습니다.

소개글

C언어 1000라인짜리 성적산출프로그램에 대한 보고서 자료입니다.

본문내용

#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()

키워드

  • 가격3,000
  • 페이지수21페이지
  • 등록일2008.04.21
  • 저작시기2008.3
  • 파일형식기타(c)
  • 자료번호#461947
본 자료는 최근 2주간 다운받은 회원이 없습니다.
청소해
다운로드 장바구니