1596, 1/80 ȸ¿ø°¡ÀÔ  ·Î±×ÀΠ 
   sihun1113
   <»þ¿À¾² Ÿ·Î>5.¾È³»¹®Ç¥½Ãpri.h

http://www.hackerschool.org/HS_Boards/zboard.php?id=Free_Lectures&no=1785 [º¹»ç]


¿ì¼± ¾È³»¹®Àº Àú¹ø°­Á¿¡ ¿Ã¸±·Á°í ÇßÀ¸³ª ³»¿ëÀÌ ±æ¾î¼­ µû·Î ÃßÃâÇؼ­ ¿Ã·Áµå¸³´Ï´Ù.





ÀÚ.À̹ø °­Á´ ¾È³»¹® ¸¸µé±âÀÔ´Ï´Ù.



±×³É »ý°¢Çغ¸¸é º°°Í ¾ø¾îº¸ÀÔ´Ï´Ù.



cout¸¸ ÇÏ¸é µÇÀݾÆ~ ¶ó°í »ý°¢ÇϽô ºÐµéÀÌ ´ëºÎºÐÀÌ½Ç °Å¶ó°í »ý°¢ÇÕ´Ï´Ù.



ÇÏÁö¸¸ Àúó·³ JQ°¡ ¶Ù¾î³­(§¸Ó¸®) ºÐµéÀº ÀçÅÁ(ÀçÈ°¿ë¼º)À» »ý°¢ÇϽÃÁö¿ä



±×·¡¼­ ¸¸µé¾ú½À´Ï´Ù.





ÀÚÀÚ..JQ§¸Ó¸®ÀÇ »ê½Ç..



      private:

              //¾È³»¹®
              string ct1;//Áß°£ ¾È³»¹® 1ÆäÀÌÁö 1¹ø° ÁÙ
              string ct2;//Áß°£ ¾È³»¹® 1ÆäÀÌÁö 2¹ø° ÁÙ
              string ct3;//Áß°£ ¾È³»¹® 1ÆäÀÌÁö 3¹ø° ÁÙ
              string ct4;//Áß°£ ¾È³»¹® 1ÆäÀÌÁö 4¹ø° ÁÙ
              string ct5;//Áß°£ ¾È³»¹® 2ÆäÀÌÁö 1¹ø° ÁÙ
              string ct6;//Áß°£ ¾È³»¹® 2ÆäÀÌÁö 2¹ø° ÁÙ
              string ct7;//Áß°£ ¾È³»¹® 2ÆäÀÌÁö 3¹ø° ÁÙ
              string ct8;//Áß°£ ¾È³»¹® 2ÆäÀÌÁö 4¹ø° ÁÙ
              string ct9;//Áß°£ ¾È³»¹® 3ÆäÀÌÁö 1¹ø° ÁÙ
              string ct10;//Áß°£ ¾È³»¹® 3ÆäÀÌÁö 2¹ø° ÁÙ
              string ct11;//Áß°£ ¾È³»¹® 3ÆäÀÌÁö 3¹ø° ÁÙ
              string ct12;//Áß°£ ¾È³»¹® 3ÆäÀÌÁö 4¹ø° ÁÙ
              string ct0;//Áß°£ ¾È³»¹® ÁÙ Áö¿ì±â

              int pp;//Áß°£ ¾È³»¹® ÆäÀÌÁö º¯¼ö ±âº»Àº0À¸·Î1ÆäÀÌÁö 2´Â2p 3Àº 3pÀÌ´Ù.



ÀÔ´Ï´Ù..ÃÑ Áß°£ ¾È³»¹®Àº ÃÖ´ë 3ÆäÀÌÁö°¡ µÇ±¸¿ä



ÀÌ·¸°Ô stringÀ» ³²¹ßÇÏ´Â Åõ¹ÚÇÑ ÇÁ·Î±×·¡¹ÖÀ» Çϼŵµ µÇ¸ç



¹è¿­·Î ±ò²ûÇÏ°Ô Ã³¸®¸¦ Çϼŵµ µË´Ï´Ù.



°¢ÀÚÀÇ ÃëÇâ°ú ½Ç·Â¿¡ ¸Ã±æ°Ô¿ä. Àü ÀÏ´Ü Åõ¹ÚÇÏ°Ô ÀÏÀÏÈ÷ ´ÙÇß½À´Ï´Ù.



¿Ö stringÀ» ¸¹ÀÌ ¸¸µé¾ú´À³Ä°í¿ä?



À½ ´ëÃæ ´«Ä¡ ä½ÅºÐµéµµ º¸À̴±º¿ä.



±×·¸½À´Ï´Ù. ¾È³»¹®À» Ãâ·ÂÇÒ¶§Ä«´Ù coutÀ» ÇÏÁö¾Ê°í ÀúÀ§ÀÇ stringµéÀ» coutÇØÁÖ´Â ÇÔ¼ö¸¦ ºÒ·¯¿À±â À§Çؼ­ÀÔ´Ï´Ù.



ct1~ct12±îÁöÀÇ ³»¿ë¸¸ ¹Ù²ãÁÖ°í coutÀ» ÇØÁÖ´Â ÇÔ¼ö¸¦ µû·Î¸¸µé¾î È£Ã⸸ÇϰԵǸé



¼Ò½ºÀÇ ±æÀÌ´Â ´õ ÁÙ¾îµé°ÚÁö¿ä.



ÀÚ ¿¹¸¦ µé¾îº¸ÀÌ°Ú½À´Ï´Ù.



                             else if(imenu==2)//Á¾·á°¡ ¼±ÅõǾî ÀÖÀ¸¸é
                             {
                                        //Áß°£ ¾È³»¹® ³»¿ë ÀúÀå
                                        helpcho();//ctÃʱâÈ­.
                                        ct1="ÀÚ½ÅÀÇ ¿îÀº";
                                        ct2="Ÿ°í ³ªÁö¸¸";
                                        ct3="±× ¿îÀÇ °á°ú´Â";
                                        ct4="ÀÚ½ÅÀÌ ¸¸µé¾î°¡´Â °Í";
                                        ct5="¹Ì·¡¸¦ À§ÇÑ";
                                        ct6="ÀÚ½ÅÀÌ µÇ½Ã±æ¹Ù·¡¿ä.";
                                        pp=2;//Áß°£ ¾È³»¹® ÆäÀÌÁö°¡ 2ÆäÀÌÁöÀÓ.
                                        centerhelp(); //Áß°£ ¾È³»¹® Ãâ·Â
                                        gotoxy(0,30);
                                        break;
                             }



¸Þ´º¿¡¼­ Á¾·á¸¦ ¼±ÅÃÇÒ °æ¿ìÀÇ ¾È³»¹® Ãâ·ÂºÎºÐÀÔ´Ï´Ù.



ÀÌ·¸°Ô ctµéÀÇ ³»¿ëÀ» ¹Ù²Û´ÙÀ½ centerhelp(); ÇÔ¼ö·Î coutÀ» ÇØÁÖ°Ô µÇ¸é Á»´õ ¼Ò½º°¡ ª¾ÆÁö°Ô µË´Ï´Ù.



helpcho´Â ctµéÀÇ ³»¿ëÀ» ""À¸·Î ¸¸µé°í Àüü Ãâ·ÂÀ» ÇØÁÜÀ¸·Î½á À̹ÌÃâ·ÂµÈ ¾È³»¹®À» Áö¿ì°Ô ¸¸µå´Â ºÎºÐÀÔ´Ï´Ù.



¿ì¼± centerhelp(); ¸ÕÀú º¸Áö¿ä



void pri::centerhelpnos()
{
     WHITE;
     helpclr();
     //ù ÆäÀÌÁö Ãâ·Â
     gotoxy(33,10);
     cout<<ct1;
     gotoxy(35,12);
     cout<<ct2;
     gotoxy(37,14);
     cout<<ct3;
     gotoxy(39,16);
     cout<<ct4;
     if(pp>=2)//¸¸¾à ¾È³»ÆäÀÌÁöÂʼö°¡ 2ÆäÀÌÁö ÀÌ»óÀ̸é
     {
     //ÆäÀÌÁö Áö¿ì°í
     helpclr();
     //µÎ¹ø° ÆäÀÌÁö Ãâ·Â
     gotoxy(33,10);
     cout<<ct5;
     gotoxy(35,12);
     cout<<ct6;
     gotoxy(37,14);
     cout<<ct7;
     gotoxy(39,16);
     cout<<ct8;
       if(pp==3)//¸¸¾à ¾È³»ÆäÀÌÁö¼ö°¡ 3ÆäÀÌÁöÀ̸é
       {
                    //ÆäÀÌÁö Áö¿ì°í
                    helpclr();
                    //¼¼¹ø° ÆäÀÌÁö Ãâ·Â
                    gotoxy(33,10);
                    cout<<ct9;
                    gotoxy(35,12);
                    cout<<ct10;
                    gotoxy(37,14);
                    cout<<ct11;
                    gotoxy(39,16);
                    cout<<ct12;
       }    
     }
}



¿äŽó°í·Ò ÇØÄ¡¿ö ¹ö¸®´Â°Ì´Ï´Ù.



±×·³ gotoxy¿ÍcoutÀ» È®½ÇÈ÷ ÁÙÀϼö ÀÖ°ÔµÇÁÒ.



¿©±â¼­ pp´Â µüº¸°í ¾Æ¼Ì°ÚÁö¸¸ ÆäÀÌÁö ¼ýÀÚÀÔ´Ï´Ù.



¸ðµç ¾È³»¹®ÀÇ ÆäÀÌÁö°¡ °°À» ¼ö´Â ¾øÀݾƿä^^



ÀÌ ¼Ò½º¿¡ Sleep¹®À» °É°ÔµÇ¸é ÆäÀÌÁö°¡ Â÷·Ê´ë·Î º¸ÀÌ°Ô µÇ´Â°Ì´Ï´Ù.





À§¿¡ ¼Ò½º¸¦ º¸´Ï helpclr();´Â ´õ¿í ½±°ÚÁÒ?



³×..¾Æ·¡Ã³·³ °£´ÜÇÏ°Ô ¾È³»¹®À» Áö¿öÁÖ´Â ºÎºÐÀ» ¸¸µé¼ö ÀÖ½À´Ï´Ù.



void pri::helpclr()//Áß°£ ¾È³»¹® Áö¿ì±â ±¸Çö
{
     string ct0="                       ";//Áß°£ ¾È³»¹® ÁÙ Áö¿ì±â ±¸Çö
     gotoxy(33,10);
     cout<<ct0;
     gotoxy(35,12);
     cout<<ct0;
     gotoxy(37,14);
     cout<<ct0;
     gotoxy(39,16);
     cout<<ct0;
}



ÀÌ·¸°Ô ¾È³»¹®ÀÇ ±¸ÇöÀº



string¿¡ ³»¿ëÀ» ³Ö°í stringÀ» ¾ç½Ä¿¡¸ÂÃçÃâ·ÂÇØÁÖ´Â ÇÔ¼ö¸¦ È£ÃâÇϴ°ÍÀ¸·Î ÇØ°áµË´Ï´Ù.



´Ù..ÀÌ·± ³»¿ëµéÀ» class¾È¿¡ ³ÖÀº ¸ð½ÀÀº ´ÙÀ½°­Á¿¡ 1~5°­ ÃѼҽº¸¦ ¿Ã·Áµå¸®°Ú½À´Ï´Ù.
[Ãâó] <»þ¿À¾² Ÿ·Î>5.¾È³»¹®Ç¥½Ãpri.h (C¾ð¾î¸¦ ¹è¿ìÀÚ) |ÀÛ¼ºÀÚ ÇØĿǪ


  Hit : 7431     Date : 2011/06/04 08:20



    
dkdkfjgh [Ãâó] <»þ¿À¾² Ÿ·Î>5.¾È³»¹®Ç¥½Ãpri.h (C¾ð¾î¸¦ ¹è¿ìÀÚ) |ÀÛ¼ºÀÚ ÇØĿǪ


Ãâó´Â ³²°Üµµ.... Æ÷ÀÎÆ® ¾òÀ¸½Ç·Á±¸ Çã¶ôµµ ¾È¹Þ°í ¸· ÆÛ¿À½Ã¸é ÀúÀ۱ǹý À§¹ÝÀΰŠ¾Æ½ÃÁÒ??
2011/07/25  
     [°øÁö] °­Á¸¦ ¿Ã¸®½Ç ¶§´Â ¸»¸Ó¸®¸¦ ´Þ¾ÆÁÖ¼¼¿ä^¤Ñ^ [29] ¸Û¸Û 02/27 19448
1595   [pwnable.kr] Shellshock[1]     ÇØÅ·ÀßÇÏ°í½Í´Ù
11/23 96
1594   ShellshockÀÇ ±âº» ¿ä¾à     ÇØÅ·ÀßÇÏ°í½Í´Ù
11/23 77
1593   [pwnable.kr] fd     ÇØÅ·ÀßÇÏ°í½Í´Ù
11/23 70
1592   VPNÀÌ ¿¬°áµÇ¾ú´Ù°¡ µµÁß¿¡ ²¨µµ À¥ ºê¶ó¿ìÀú»ó¿¡¼­ À¯ÁöµÇ´Â ÀÌÀ¯     ÇØÅ·ÀßÇÏ°í½Í´Ù
11/22 77
1591   ÇØÄ¿µéÀÌ ÇØÅ·½Ã »ç¿ëÇÏ´Â µð·ºÅ丮 °ø°£[1]     ÇØÅ·ÀßÇÏ°í½Í´Ù
11/22 114
1590   Keyboard Hooking -part2 - (Python3 ver)     ÇØÅ·ÀßÇÏ°í½Í´Ù
11/20 84
1589   [Windows API] Keyboard Hooking     ÇØÅ·ÀßÇÏ°í½Í´Ù
11/20 74
1588   [pwnable.kr] cmd1 °ø·«     ÇØÅ·ÀßÇÏ°í½Í´Ù
10/23 236
1587   netdiscover ÆÄÀ̽ãÀ¸·Î ±¸ÇöÇϱ⠠   ÇØÅ·ÀßÇÏ°í½Í´Ù
08/13 515
1586   ÆÄÀ̽ãÀ» ÀÌ¿ëÇÑ ½ÉÇà À¥ Å©·Ñ·¯     ÇØÅ·ÀßÇÏ°í½Í´Ù
08/13 407
1585   ÆÄÀ̽ã random¸ðµâÀ» ÀÌ¿ëÇÑ ¼ýÀÚ¸ÂÃ߱⠰ÔÀÓ ±¸Çö     ÇØÅ·ÀßÇÏ°í½Í´Ù
05/30 957
1584   ÆÄÀ̽ã äÆà ÇÁ·Î±×·¥ ±¸Çö     ÇØÅ·ÀßÇÏ°í½Í´Ù
05/28 845
1583   ÆÄÀ̽㠼ÒÄÏ ÇÁ·Î±×·¡¹ÖÀÇ ±âÃÊ     ÇØÅ·ÀßÇÏ°í½Í´Ù
05/26 987
1582   ¸®´ª½º À¥ ·Î±× ºÐ¼®     ÇØÅ·ÀßÇÏ°í½Í´Ù
05/20 675
1581   ¸®´ª½º/À©µµ¿ì º¸¾È Àåºñ ·Î±×     ÇØÅ·ÀßÇÏ°í½Í´Ù
05/20 824
1580   °í¼ö´ÔµéÀÇ µµ¿òÀ» ¹Þ°í ½Í½À´Ï´Ù     vbnm111
02/11 914
1579   ¸®´ª½º Ä¿³Î 2.6 ¹öÀü ÀÌÈÄÀÇ LKM     jdo
07/25 1429
1578   ½©ÄÚµå ¸ðÀ½     ÇØÅ·ÀßÇÏ°í½Í´Ù
01/15 2305
1577   Call by value VS Call by Reference     ÇØÅ·ÀßÇÏ°í½Í´Ù
01/15 1606
1 [2][3][4][5][6][7][8][9][10]..[80]

Copyright 1999-2024 Zeroboard / skin by Hackerschool.org / Secure Patch by Hackerschool.org