흐음 질문입니다만 ;;
2007-05-31 12:01:15
2,065
왠지 의도적인거 같지 말이빈다
프리미어에서 avi가 소스등록이 안되는데 왜 그러는지 모르겠습니다 ;;
커그 지식인의 힘을 믿습니다
프리미어에서 avi가 소스등록이 안되는데 왜 그러는지 모르겠습니다 ;;
커그 지식인의 힘을 믿습니다
댓글
1개 댓글 쓰러가기#include <stdlib.h>
#include <conio.h>
#define dfdf 100
void madeid();
void login();
void world();
int check();
void gomain();
void INN();
void BANK();
void CHURCH();
void STORE();
void FIELD();
void stat();
void sawstatus();
int i,j,count;
char password[dfdf];
char name[dfdf];
char yn;
int num;
int hp=100;
int mp=80;
int att=str*0.8;
int def=(dex+str)*0.4;
int str=15;
int dex=15;
int wiz=15;
int into=15;
int level=1;
int main(void)
{
printf("\\t웹게임\\n\\n");
printf("welcome to the world!\\n\\n");
printf("\\n┏━━━━━━━━━━━━━━━━━━┓");
printf("\\n┣━━━━━━ 1.NEW GAEM ━━━━━━┫");
printf("\\n┣━━━━━━ 2.LOAD GAME━━━━━━┫");
printf("\\n┣━━━━━━ 3.EXIT ━━━━━━━━┫");
printf("\\n┗━━━━━━━━━━━━━━━━━━┛");
printf("\\nselect the number-");
i=getch();
switch(i)
{
case '1':
madeid();
break;
case '2':
login();
break;
case '3':
printf("\\n\\npress the enter.\\n\\n");
break;
default :
printf("\\n\\nWRONG NUMBER!!");
getch();
gomain();
break;
}
system("PAUSE");
return 0;
}
void madeid()
{
int i,j,count;
char password[dfdf];
char name[dfdf];
char yn;
int num;
system("cls");
printf("\\nHello guy. Welcome to the world.\\n\\\\nIf you want to join this game, you have to deside the name that used in this game.");
printf("First, please insert the your id");
printf("\\nor if you want to go first page, insert the 'exit'.\\n- ");
scanf("%s",&name);
if(name[dfdf]=="exit")
{
system("cls");
main();
}
else if(name[dfdf]!="exit")
{
printf("Good. %s, now please deside the password\\n- ",name);
for(i=0;i<=count;++i)
{
if((num=getch())!=' ')
{
password[i]=num;
if(password[i]!=8)
{
putch('*');
}
else if(password[i]=8)
{
printf("\\b \\b");
}
}
else if((num=getch())==' ')
{
putch('\\n');
password[i]=NULL;
printf("니 비번 %s 맞음?\\n\\nY.예 N.아니요\\n",password);
yn=getch();
if(yn=='y')
{
printf("\\n\\n알았다. 접속할거니까 기다려봐.");
world();
}
else if(yn=='n')
{
printf("\\n장난하냐 처음부터 다시해라 -_-;\\n");
printf("\\n일단 아무키나 눌러봐. 메인으로 가줄께\\n");
getch();
gomain();
}
}
}
}
}
void login()
{
printf("미구현");
}
void world()
{
system("cls");
printf("\\nWelcome to the world.\\n");
getch();
printf("\\n┏━━━━━━━━━━━━━━━━━━━━━━┓");
printf("\\n┣ 1.GO TO THE INN ┫");
printf("\\n┣ 2.GO TO THE BANK ┫");
printf("\\n┣ 3.GO TO THE STORE ┫");
printf("\\n┣ 4.GO TO THE CHURCH ┫");
printf("\\n┣ 5.GO TO THE FIELD ┫");
printf("\\n┣ 6.STATUS ┫");
printf("\\n┗━━━━━━━━━━━━━━━━━━━━━━┛\\n");
i=getch();
switch(i)
{
case '1':
INN();
break;
case '2':
BANK();
break;
case '3':
STORE();
break;
case '4':
CHURCH();
break;
case '5':
FIELD();
break;
case '6':
sawstatus();
break;
default :
printf("\\n\\nWRONG NUMBER!!");
getch();
world();
break;
}
}
void gomain()
{
system("cls");
main();
}
void INN()
{
system("cls");
printf("\\n여관입니다!\\n");
printf("\\n숙박료는 300G입니다.\\n");
printf("\\n숙박하시겠습니까?\\n");
printf("\\n\\n1.예 2.아니오\\n");
yn=getch();
if(yn=='1')
{
printf("\\n체력과 마나가 회복되었습니다.");
}
else if(yn=='2')
{
printf("\\n안녕히 가십시오.");
world();
}
else
{
printf("\\n잘못 눌렀수다");
INN();
}
}
void BANK()
{
system("cls");
printf("\\n은행입니다!\\n");
}
void CHURCH()
{
system("cls");
printf("\\n교회입니다!\\n");
}
void STORE()
{
system("cls");
printf("\\n상점입니다!\\n");
}
void FIELD()
{
system("cls");
printf("\\n필드로 나왔습니다!\\n");
}
void stat()
{
int hp=100;
int mp=80;
int att;
int def;
int str=15;
int dex=15;
int wiz=15;
int into=15;
int level=1;
if(level-1>0)
{
for(i=0;i<=(level-1);++i)
{
hp+=5;
mp+=3;
str+=4;
dex+=4;
wiz+=3;
into+=3;
}
}
else
{
hp=100;
mp=80;
att=str*0.8;
def=(dex+str)*0.4;
str=15;
dex=15;
wiz=15;
into=15;
level=1;
}
}
void sawstatus()
{
system("cls");
printf("\\n┏━━━━━━━━┳┳━━━━━━━━━┓");
printf("\\n┣ STR %d ┃┃ HP %d ┫",str,hp);
printf("\\n┣ DEX %d ┃┃ MP %d ┫",dex,mp);
printf("\\n┣ WIZ %d ┃┃ ATT %d ┫",wiz,att);
printf("\\n┣ INT %d ┃┃ DEF %d ┫",into,def);
printf("\\n┗━━━━━━━━┻┻━━━━━━━━━┛\\n");
printf("");
}
질문·답변란
게시원칙(필독!)총 28,184개의 게시물
(940 / 940 쪽)
커그 전체 검색