Turbo-C
C++Builder  |  Delphi  |  FireMonkey  |  C/C++  |  Free Pascal  |  Firebird
볼랜드포럼 BorlandForum
 경고! 게시물 작성자의 사전 허락없는 메일주소 추출행위 절대 금지
터보-C 포럼
Q & A
FAQ
팁&트릭
강좌/문서
자료실
Lua 게시판
볼랜드포럼 홈
헤드라인 뉴스
IT 뉴스
공지사항
자유게시판
해피 브레이크
공동 프로젝트
구인/구직
회원 장터
건의사항
운영진 게시판
회원 메뉴
북마크
볼랜드포럼 광고 모집

C/C++ Q/A
[5432] 계산프로그램에 PassWord를 걸고싶은데......
AN [] 1638 읽음    2005-11-02 18:24
처음만든 계산프로그램에 password를 걸고싶은데
if 문으로 나름대로 해봤지만 처음인지라에러만 계속 뜨네요;;
패스워드 거는 방법좀 알려주세요.

#include<stdio.h>
#include<conio.h>

void main()

{
double z,x,c,r,g;
char d;

clrscr();

printf("The operation program");
printf("\n Wirte the Password--->");
scanf("%c",d);
if('Agreeni'(char)==d)
printf("\nInput the first number.--->");
scanf("%lf",&z);
printf("Input the second number.--->");
scanf("%lf",&x);
c=z+x;
printf("%lf+%lf=%lf",z,x,c);
printf("\n%lf",c);

printf("\nInput the answer--->");
scanf("%lf",&c);
printf("\nInput the another number--->");
scanf("%lf",&r);
g=c/r;
printf("%lf/%lf=%lf",c,r,g);
printf("%lf",g);

if('Agreeni'(char)<d)
printf("This is not password");
}

좋은답변 부탁드립니다.

+ -

관련 글 리스트
5432 계산프로그램에 PassWord를 걸고싶은데...... AN 1638 2005/11/02
5439     Re:계산프로그램에 PassWord를 걸고싶은데...... 이카루스 1662 2005/11/04
Google
Copyright © 1999-2015, borlandforum.com. All right reserved.