1580, 2/79 ȸ¿ø°¡ÀÔ  ·Î±×ÀΠ 
   ¼Ò¿ï
   http://souldesign.pe.kr
   [ÀÚÀÛ] [C¹®Á¦] ´ë¼Ò¹®ÀÚ ¹Ù²Ù±â

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


[switch_upper_lower.c]

Q. ¾ËÆÄºªÀ» ÀÔ·Â¹Þ¾Æ ´ë¹®ÀÚ´Â ¼Ò¹®ÀÚ·Î, ¼Ò¹®ÀÚ¸¦ ´ë¹®ÀÚ·Î º¯È¯ÇÏ¿© Ãâ·ÂÇ϶ó.

<ÀÔ/Ãâ·Â ¿¹>
Enter alphabets : aBcDeF
AbCdEf


A. ¿¹Á¦ ¼Ò½º

#include <stdio.h>
#include <string.h>

int main(void) {
        char txt[255];

        while(1) {
                printf("%s", "Enter alphabets : ");
                fgets(txt, sizeof(txt), stdin); //fgets¸¦ ÀÌ¿ëÇÏ¿© txt¿¡ Ç¥ÁØÀÔ·ÂÀ» ¹ÞÀ½
                
                int i;
                for(i=0; i<strlen(txt)-1; i++) { //txtÀÇ ±æÀÌ - 1(³Î¹®ÀÚ)¸¸Å­ ·çÇÁ
                        char ch = txt[i]; //txtÀÇ i¹øÂ° ¹®ÀÚ¸¦ ch¿¡ ´ëÀÔ
                        
                        if(ch >= 97 && ch <= 122) //ch°¡ ¼Ò¹®ÀÚÀÏ °æ¿ì
                                txt[i] -= 32; //txtÀÇ i¹øÂ° ¹®ÀÚ - 32

                        if(ch >= 65 && ch <= 90) //ch°¡ ´ë¹®ÀÚÀÏ °æ¿ì
                                txt[i] += 32; //txtÀÇ i¹øÂ° ¹®ÀÚ + 32
                                
                }

                printf("%s", txt);
        }


        return 0;
}

  Hit : 6867     Date : 2010/03/20 06:02



    
Myers ¤»¤»¤» °Á toupperÇÔ¼öÇϰí tolower ÇÔ¼ö »ç¿ëÇϽÃÁö... 2010/03/21  
¼Ò¿ï Myers//±×·±°Íµµ ÀÖ±º¿ä ;;;;; 2010/03/21  
Cpgroot °¨»çÇÕ´Ï´Ù. 2010/08/18  
1560   À©µµ¿ì¿¡¼­ grep »ç¿ëÇϱâ[3]     ¼Û½Ã
11/05 8035
1559   IP ¿Í PORT[8]     ¼Û½Ã
11/02 9725
  [ÀÚÀÛ] [C¹®Á¦] ´ë¼Ò¹®ÀÚ ¹Ù²Ù±â[3]     ¼Ò¿ï
03/20 6866
1557   [ÀÚÀÛ] [C¹®Á¦] ¼Ò¼ö¸¸ °É·¯³»±â[2]     ¼Ò¿ï
03/20 7647
1556   [ÀÚÀÛ] [C¹®Á¦] Á¡(.)À» »« ¹®ÀÚ Ãâ·ÂÇϱâ[1]     ¼Ò¿ï
03/20 6488
1555   [ÀÚÀÛ] À©µµ¿ì cmd ÆÁ - º¹»çÇϱâ[7]     ¼Ò¿ï
03/01 8869
1554   [ÀÚÀÛ] FTZ Æ®·¹ÀÌ´× 1~10±îÁö °£´ÜÇÏ°Ô Á¤¸®[14]     ¼Ò¿ï
03/01 14463
1553   Format String Attack - Concept and General Exploit (by Seo SungHyen)[6]     ¼ÒÀ¯
07/07 10922
1552   ¹öÆÛ¿À¹öÇ÷οì by ¿ÀÇ϶ó[3]     ¼ÒÀ¯
07/07 14669
1551   Overflow °ø°Ý ±â¹ýµé¿¡ ´ëÇÑ Á¤¸® by ¹ö½ºÆ®     ¼ÒÀ¯
07/07 15135
1550   ¿Ö C À̾î¾ß Çϴ°¡ ?[96]     ¼ÒÀ¯
04/09 23415
1549   ÀÎÅͳݿ¡ ¸®´ª½º ¼­¹ö ±¸ÃàÇϱâ[1]     ¼ÒÀ¯
07/07 14208
1548   [Àâ] ³×Æ®¿öÅ© TCP[8]     ¼ÒÀ¯
10/31 8765
1547   [Àâ] ³×Æ®¿öÅ© IP[5]     ¼ÒÀ¯
11/01 9772
1546   ¸®´ª½º ¼³Ä¡Çϱâ - RPMÆí[3]     ¼ÒÀ¯
10/09 9236
1545   ¸®´ª½º ¼³Ä¡Çϱâ - ½©Æí[2]     ¼ÒÀ¯
10/07 9272
1544   ¾ÕÀ¸·Î À̾îÁú ±Û¿¡ ´ëÇØ¼­.....[2]     ¼ÒÀ¯
10/06 8148
1543   ¸®´ª½º ¼³Ä¡Çϱâ - µð·ºÅ丮Æí     ¼ÒÀ¯
10/06 8768
1542   ¸®´ª½º ¼³Ä¡Çϱâ - ÆÄƼ¼ÇÆí[6]     ¼ÒÀ¯
10/06 9126
1541   ¸®´ª½º ¼³Ä¡Çϱâ - ÆÁÆí     ¼ÒÀ¯
10/06 8533
[1] 2 [3][4][5][6][7][8][9][10]..[79]

Copyright 1999-2023 Zeroboard / skin by Hackerschool.org / Secure Patch by Hackerschool.org & Wowhacker.com