3. ¶
1. 대 때리기 게 .
규 :
규 :
1) 대 력 0 가 되면 게료
2) 대 공
3) 는 두 가 공격 방 나를 다 : ,
4)
2. 관리 로그램 .2) 대 공
3) 는 두 가 공격 방 나를 다 : ,
4)
- 력
대 : 1000
: 500
- 공격력: 500
대 : 50~100
: 80~100
: 50~150
: 80~100
: 50~150
4. 기 ¶
- 기 령 : 기는 F4(ThreeFs + Future Action Plan) 맞게 .
- 관련 : ThreeFs, ThreeFs(노모), FiveFs(노모)
- 링를 러보기 귀 당 단 명
- Facts, Feelings, Findings, Future Action Plan. , , 느낀 , 깨달 , 로 .
- 를 들 난 가를 먹 것 대 기를 다면 : "난 강남 가 나 5만는 가를 먹다.() 기대를 뜩 는데 로 다.(느낌) 강남 땅값 값만 보고 라 기대면 된다는 것 다.(깨달) 다는 미리 보고 높 가 가봐겠다.(로 )"
- Facts, Feelings, Findings, Future Action Plan. , , 느낀 , 깨달 , 로 .
- 관련 : ThreeFs, ThreeFs(노모), FiveFs(노모)
5. ¶
#include<stdio.h> #include<time.h> #include<math.h> #include<stdlib.h> void main(){ int Sundae = 1000; int Player = 500; int sundaeattack; int userkick; int userpunch; int user_attack_type; printf("대 때리기 게 start!\n"); printf("대 력 : %d\n",Sundae); printf(" 력 : %d\n",Player); printf("대 공\n"); srand((unsigned)time(NULL)); while(Sundae>=1){ sundaeattack = rand()%101+50; Player - sundaeattack; printf("Player는 %d 데미를 다.\n",sundaeattack); printf("User 공격방법 : Punch = p , Kick = k : \n"); scanf("%c",&user_attack_type); for(Player;Player<=0;) { if(user_attack_type == 'p'){ userpunch = rand()%101+80; Sundae - userpunch; printf("User가 %d 데미를 다.\n",userpunch); } if(user_attack_type == 'k'){ userkick = rand()%151+50; Sundae - userkick; printf("User가 %d 데미를 다.\n",userkick); } continue; } if(Sundae <= 0 && Player <= 0){ printf("둘다 ㅠ\n"); break; } else if(Sundae <= 0){ printf("대를 E겼다 !!EE!!\n"); break; } else if(Player <= 0){ printf("대게 ㅠ\n"); break; } } printf("게 료!..\n"); system("pause"); } 문는 for문 돕다.... 무루 닌것... 게 뭔... continue 법과 switch case 'p' 같 로 게 경 는 모르겠. 려 ㅇㅠㅠ