À̹ø °Á´ »þ¿À¾² Ÿ·ÎÀÇ Ã¹È¸éÀ» ±¸ÇöÇÏ°Ú½À´Ï´Ù.
ùȸéÀº ¿ì¼± ±âº»ÀûÀ¸·Î º£À̽º°¡µÇ´Â ±×¸²°ú ƲÀÌ ÇÊ¿äÇϱº¿ä.
ÀÚ, ±×·³ ƲÀ» ¸¸µé¾î º¼±î¿ä?
¸ÕÀú ¼Ò½º¸¦ º¸½Ã°Ú½À´Ï´Ù.
/*ù ȸéÀÇ Ãâ·ÂºÎºÐ
±âº» ƲÃâ·Â,±âº»Ã¹¸Þ´º¹öÆ° Ãâ·Â*/
void pri::first()
{
gotoxy(0,0);//32(64)*30»çÀÌÁî
WHITE;
cout<<"¦£¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¤";
cout<<"¦¢ ";
YEL;
cout<<",'";
WHITE;
cout<<" ¦¢";
cout<<"¦¢ ";
YEL;
cout<<",',',,,',,',";
WHITE;
cout<<" ¦¢";
cout<<"¦¢ ";
YEL;
cout<<",','',', ',',,'',,',";
WHITE;
cout<<" ¦¢";
cout<<"¦¢ ";
YEL;
cout<<",' ',',,,', ,',,'''";
WHITE;
cout<<" ¦¢";
cout<<"¦¢ ";
YEL;
cout<<"',',,',,',',,','',',,'";
WHITE;
cout<<" ¦¢";
cout<<"¦¢ ";
YEL;
cout<<",'' ,',', ,',', '";
WHITE;
cout<<" ¦¢";
cout<<"¦¢ , ";
YEL;
cout<<"' ','";
WHITE;
cout<<" ¦¢";
cout<<"¦¢ . o o ";
YEL;
cout<<",'";
WHITE;
cout<<" ¦¢";
cout<<"¦¢ . : . ¦¢";
cout<<"¦¢ . _ . ¦¢";
cout<<"¦¢ . . ¦¢";
cout<<"¦¢ ` . . ¦¢";
cout<<"¦¢ * . . . . ";
HIGH;
cout<<",..PpP.,";
WHITE;
cout<<" . .* ¦¢";
cout<<"¦¢ ";
YEL;
cout<<"8888888";
WHITE;
cout<<"',`'";
HIGH;
cout<<"` ,";
WHITE;
cout<<"'`,`'";
YEL;
cout<<"88";
WHITE;
cout<<" ¦¢";
cout<<"¦¢ ";
YEL;
cout<<"88888888888";
WHITE;
cout<<",'`";
HIGH;
cout<<", ,";
WHITE;
cout<<"`'`";
YEL;
cout<<"888888";
WHITE;
cout<<" ¦¢";
cout<<"¦¢ ";
YEL;
cout<<"8888888 88888";
WHITE;
cout<<",'";
HIGH;
cout<<"` .";
WHITE;
cout<<"'";
YEL;
cout<<"888888888";
WHITE;
cout<<" ¦¢";
cout<<"¦¢";
YEL;
cout<<"888888 888888";
WHITE;
cout<<".";
HIGH;
cout<<"`bBBb`";
YEL;
cout<<"8888 8";
WHITE;
cout<<" ¦¢";
cout<<"¦¢ ";
YEL;
cout<<"8888888 888888";
WHITE;
cout<<"`pPPp";
YEL;
cout<<"88888 8";
WHITE;
cout<<" ¦¢";
cout<<"¦¢ ";
YEL;
cout<<"8888888, 88888 8888 ";
WHITE;
cout<<",.``,' ¦¢";
cout<<"¦¢------------------------------------------ ¦¢";
cout<<"¦¢ ¦¢";
cout<<"¦¢ ¦¢";
cout<<"¦¢ ¦¢";
cout<<"¦¢ ¦¢";
cout<<"¦¢ ¦¢";
cout<<"¦¢ ¦¢";
cout<<"¦¢ ¦¢";
cout<<"¦¢ ¦¢";
cout<<"¦¦¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¥";
}
ȸéÀ» ½ÇÇàÇغ¸¸é Ŭ »óÀÚƲ¾È¿¡ ¾È³»¸¦À§ÇÑ ±âº»±×¸²ÀÌ ÂïÇô³ª¿É´Ï´Ù.
¼Ò½º¸¦ ºÁµµ º°°Í ¾ø±º¿ä. 2¹ø° °Á¿¡¼ ¼³¸íÇÑ ºÎºÐÀÎ »ö±ò¹Ù²Ù±â¸¦ ÀÌ¿ëÇÏ¿©
»ö±òÀ» ¹Ù²ã°¡¸é¼ Ãâ·ÂÀ» ÇÑ°Í»©°ï ÀÌ·¸´ÙÇÏ°Ô ¾î·Á¿î ºÎºÐÀÌ ¾ø½À´Ï´Ù.
´Ù¸¸ ÀÌ·¸°Ô ÄÜ¼Ö ÇÁ·Î±×·¥ÀÇ Æ²À» ¸¸µé¸é
´ÙÀ½ ÇÁ·Î±×·¡¹ÖÀÇ ±¸ÇöºÎÅÍ Æ²ÀÇ Á¦¾àÀÌ °¡ÇØÁö¹Ç·Î ½ÅÁßÈ÷ »çÀÌÁ °í·ÁÇؾßÇÕ´Ï´Ù
ÀØÁö ¸¶¼¼¿ä~@
ÀÌ·¸°Ô ±×¸²±îÁö ³ÖÀº ƲÀ» ¸¸µé¾î¼ ÄÄÆÄÀÏÀ» Çغ¸´Ï
¿ì»ó´ÜÀÌ ¹º°¡ ÇãÀüÇϱº¿ä
ÀÌ·²¶© ÀÌÆåÆ®°¡ ÇÊ¿äÇÏÁö¿ä.
Àü º°ÀÌÆåÆ®¸¦ ³Ö¾îº¸¾Ò½À´Ï´Ù.
/*º°(½ºÅ¸) ÀÌÆåÆ® ºÎºÐ
º°À̶³¾îÁö´Â(À¯¼±)ÀÇ ÀÌÆåÆ®¸¦ È¸é ¿ìÃø»ó´Ü¿¡ Ãâ·ÂÇØÁØ´Ù.*/
void pri::stareffect()
{
//st0
WHITE;
gotoxy(53,1);
cout<<"£¯";
Sleep(50);
gotoxy(52,2);
cout<<"£¯";
Sleep(50);
gotoxy(51,3);
cout<<"£¯";
Sleep(50);
gotoxy(50,4);
cout<<"£¯";
Sleep(50);
//st1
gotoxy(49,5);
cout<<"£¯";
gotoxy(60,1);
cout<<"£¯";
Sleep(50);
gotoxy(48,6);
cout<<"£¯";
gotoxy(59,2);
cout<<"£¯";
Sleep(50);
gotoxy(47,7);
cout<<"£¯";
gotoxy(58,3);
cout<<"£¯";
Sleep(50);
gotoxy(46,8);
YEL;
cout<<"¡Ù";
WHITE;
gotoxy(57,4);
cout<<"£¯";
//st2
Sleep(50);
gotoxy(56,5);
cout<<"£¯";
gotoxy(60,6);
cout<<"£¯";
Sleep(50);
gotoxy(55,6);
RED;
cout<<"¡Ù";
WHITE;
gotoxy(59,7);
cout<<"£¯";
Sleep(50);
gotoxy(58,8);
cout<<"£¯";
Sleep(50);
gotoxy(57,9);
cout<<"£¯";
Sleep(50);
gotoxy(56,10);
HIGH;
cout<<"¡Ù";
WHITE;
}
¿ª½Ã³ª º°°Í ¾ø½À´Ï´Ù
Àú¹ø°ú ´Ù¸§À̶ó¸é Sleep¹®À» ³Ö¾î¼ µô·¹À̸¦ °Ç°ÍÀä.
Sleep(1000);À» Çϸé 1ÃÊ°£ÀÇ µô·¹ÀÌ°¡ °É¸³´Ï´Ù.
50Àº 0.05ÃÊÀÌÁö¿ä.
¶ÇÇÑ ÀÌSleep¹®À» ¾µ·Á¸é windows.h¸¦ ÀÎŬ·çµåÇؾßÇϴµ¥
¾Õ¼ show.h¿¡¼ ÇÏ¿´±â¶§¹®¿¡ ÀÌ ³»¿ëÀÌ µé¾î°¡´Â ÆÄÀÏÀÎ pri.h¿¡´Â
#include "show.h"
¸¸ ÇÏ¸é µÈ´ä´Ï´Ù.
ÀÌÁ¦ À§ÂÊÀÇ ÀÌÆåÆ®±îÁö ³Ö¾úÀ¸´Ï ȯ¿µÀÎ »ç°¡ ÇÊ¿äÇÒ°Í °°½À´Ï´Ù.
ÀÌ È¯¿µÀλç´Â ȸéÀÇ ¿À¸¥ÂÊ Áß°£¿¡ ³ÖÀ» °Çµ¥¿ä..
À½...
»ý°¢À» Çغ¸ÁÒ..
´ÙÀ½ °Á·ΠÀ̾îÁý´Ï´Ù.
[Ãâó] <»þ¿À¾² Ÿ·Î>4.ùȸ鱸Çöpri.h (C¾ð¾î¸¦ ¹è¿ìÀÚ) |ÀÛ¼ºÀÚ ÇØĿǪ
|