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
합 해 합~! !