[C 프로그래밍] C로 배우는 프로그래밍 (사원관리 프로그램)
본 자료는 2페이지 의 미리보기를 제공합니다. 이미지를 클릭하여 주세요.
닫기
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
해당 자료는 2페이지 까지만 미리보기를 제공합니다.
2페이지 이후부터 다운로드 후 확인할 수 있습니다.

소개글

[C 프로그래밍] C로 배우는 프로그래밍 (사원관리 프로그램)에 대한 보고서 자료입니다.

목차

- 프로그램 소스

- 스크린샷

본문내용

=true && (CompareString(info[m].birth,fbirth))){
printf("---------------------------------------------\n");
printf("사원증번호 : %d\n",info[m].code);
printf("사원 이름 : %s\n",info[m].name);
printf("출생년도 : %s\n",info[m].birth);
printf("부서 : %s\n",info[m].post);
count++;
}
}
if(count ==0){printf("not found.................\n");}
}
break;
case 7 :if(log==false){ printf("please log-in first.\n");break;}
else{
// 담당부서와 입력 값이 동일 한지 검사
char fpost[30];
printf("----------------------------------------------\n");
printf("enter post for searching :");
scanf("%s",&fpost);
int count=0;
for(int m = 0;m<1024; m++){
if(info[m].ex==true && (CompareString(info[m].post,fpost))){
printf("---------------------------------------------\n");
printf("사원증번호 : %d\n",info[m].code);
printf("사원 이름 : %s\n",info[m].name);
printf("출생년도 : %s\n",info[m].birth);
printf("부서 : %s\n",info[m].post);
count++;
}
}
if(count ==0){printf("not found.................\n");}
}
break;
case 8 :if(log==false){ printf("please log-in first.\n");break;}
else{
printf("----------------------------------------------\n");
printf("press new password:");
scanf("%d",&pass);
printf("----------------------------------------------\n");
log=false;
}
case 9 : break;
default:printf("1~8중에서 선택하세요\n");
}
}
printf("Bye");
return 0;
}
// 두 문자열의 같은지를 비교하는 함수
int CompareString(char* s1, char* s2)
{
// 문자열길이가다르면일단아님
if ( strlen(s1) != strlen(s2) )
return 0;
// 문자열길이를체크했으므로하나만체크
while ( *s1 != '\0' )
{
if ( *s1 != *s2 )
return 0;
++s1;
++s2;
}
return 1;
}
  • 가격1,500
  • 페이지수7페이지
  • 등록일2009.06.15
  • 저작시기2009.6
  • 파일형식한글(hwp)
  • 자료번호#541205
본 자료는 최근 2주간 다운받은 회원이 없습니다.
청소해
다운로드 장바구니