2 ¶
-과 , 로 , GCC법, , main, 변, Data Type, , 력 기본 , 문 -
꼭 돼! ( 궁다 강 다)
1. Ice Breaking Wiki 기.
2. 과 검, 고 내 물보기, 그리고 물보기. 강 물보기.미는 과목과.
3. 들 딩 결과 기
4. 모르는 API 문법 보게 기 http://winapi.co.kr -> 관련 2 딩 Q&A
5. 들 Wiki 내 게 보기
1. 게 및 드
http://wiki.zeropage.org/wiki.php/교/2011/무/벨4
강는 린 들게 복 + 붙기 못게!
http://wiki.zeropage.org/wiki.php/교/2011/무/벨4
강는 린 들게 복 + 붙기 못게!
///라 때리기 게!! #include<stdio.h> #include<math.h> //Rand를 가는 더 #include<stdlib.h> #include<time.h> #define KICK 350 #define PUNCH 200 #define SORAKICK 900 #define SORAPUNCH 1000 int main(){ //라 력 , 내 력 기. int Sora = 2500, My = 5000; int temp; // 변 char select; // srand(time(NULL)); //Rand 드값 변경. printf("라때리기 게 다.\n"); printf(" : 06 김 11 강 Target : 11 라\n"); while(1){ printf("라 력 : %d\n",Sora); printf("내 력 : %d\n",My); printf("발로기 : k 먹 : p\n"); //공격 력 select = getch(); //getch()는 char 글를 는 . switch(select){ default: printf("못된 력다\n"); break; case 'k' : temp = ( ( rand() % KICK +1)); //1~KICK까 데미를 다. printf("라를 발로다. 데미 : %d 를 다!\n",temp); Sora = Sora - temp; break; case 'p' : temp = ( ( rand() % PUNCH +1)); printf("라를 때립다. 데미 : %d 를 다!\n",temp); Sora = Sora - temp; break; } //내공격 select = rand() %2 +1;// 랜덤. switch(select){ case 1 : temp = ( ( rand() % SORAKICK +1)); printf("라가 발로다. 데미 : %d 를 다!\n",temp); My = My - temp; break; case 2 : temp = ( ( rand() % SORAPUNCH + 1)); printf("라가 때립다. 데미 : %d 를 다!\n",temp); My = My - temp; break; }//라 랜덤 공격 //공격 // 그리고 반복 if(Sora <= 0 && My <= 0){ printf("Double KO. 둘다 러다.\n"); break; } else if(Sora <= 0){ printf("라를 겼다!!! \\(* ^ * )/ \n"); break; } else if(My <= 0 ){ printf("라게 다.. OTL \n"); break;//while문 빠나다. } //나 나? } printf("\nGame Over\n"); return 0; }※ 강는 로 게 면 가르는게 겠? 부 무다.
2. 딩 Q&A(모른다면 가르고, 배 다면 ! 공 라고 는 것 다)
2.1
2.1
2.2 #include<stdio.h>, printf(), scanf(); 력 .
2.3 int, char, 변.
2.4 #define 문, 매로
2.5 #include<math.h>, #include<stdlib.h>, #include<time.h>
srand(time(NULL)), rand(). 라브러리.
srand(time(NULL)), rand(). 라브러리.
2.6 If문, switch() { case : default : } 문.
3. 과
ACM 단 문를 보겠다. 강 량과 량 맞 *^_^* 뿌뿌~!
ACM 단 문를 보겠다. 강 량과 량 맞 *^_^* 뿌뿌~!
것부 래로 려 문
3.1 단기 http://koistudy.net/?mid=prob_page&NO=152 난
3.2 렬기 http://koistudy.net/?mid=prob_page&NO=111 난
3.3 기 닭 http://koistudy.net/?mid=prob_page&NO=145 난
3.4 http://koistudy.net/?mid=prob_page&NO=213 난
3.2 렬기 http://koistudy.net/?mid=prob_page&NO=111 난
3.3 기 닭 http://koistudy.net/?mid=prob_page&NO=145 난
3.4 http://koistudy.net/?mid=prob_page&NO=213 난
디 : zeldababo 밀 : rlawns
격 다~! 보고 !