ÇÁ·Î±×·¡¹Ö

 3204, 20/161 ȸ¿ø°¡ÀÔ  ·Î±×ÀΠ 
   tegi83
   ¹®ÀÚ¿­ 3°³¸¦ ³ôÀº¼ø¼­´ë·Î ¿¬°áÇÏ´ÂÇÁ·Î±×·¥ÀÔ´Ï´Ù

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


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

void concat3(char*,char*,char*,char*);

int main(void)
{
        char str1[50];
        char str2[50];
        char str3[50];
        char constr[150];

        printf("3°³ÀÇ ¹®ÀÚ¿­ ÀÔ·Â:");
        scanf("%s,%s,%s",str1,str2,str3);

        concat3(str1,str2,str3,constr);
        puts(constr);
        return 0;
}

void concat3(char *str1,char *str2,char *str3,char *constr)
{
        if(strcmp(str1,str2)==1)
        {
                if(strcmp(str1,str3)==1)
                {
                        strcpy(constr,str1);
                        if(strcmp(str2,str3)==1)
                        {
                                strcat(constr,str2);
                                strcat(constr,str3);
                        }
                        else
                        {
                                strcat(constr,str3);
                                strcat(constr,str2);
                        }
                }
                else
                {
                        strcpy(constr,str3);
                        if(strcmp(str1,str2)==1){
                                strcat(constr,str1);
                                strcat(constr,str2);
                        }
                        else
                        {
                                strcat(constr,str2);
                                strcat(constr,str1);
                        }
                }
        }
        else
        {
                if(strcmp(str2,str3)==1)
                {
                        strcpy(constr,str2);
                        if(strcmp(str1,str3)==1)
                        {
                                strcat(constr,str1);
                                strcat(constr,str3);
                        }
                        else
                        {
                                strcat(constr,str3);
                                strcat(constr,str1);
                        }
                }
                else
                {
                        strcpy(constr,str3);
                        if(strcmp(str1,str2)==1)
                        {
                                strcat(constr,str1);
                                strcat(constr,str2);
                        }
                        else
                        {
                                strcat(constr,str2);
                                strcat(constr,str1);
                        }
                }
        }
}
¾Æ·¡´Â ¿ö´× À̶ߴµ¥ ¿Ö±×·±Áö;;
±×¸®°í Á¤»óÀûÀ¸·Î µÅÁö¸¦ ¾Ê³×¿ä;;
1>c:\documents and settings\soul\my documents\visual studio 2008\projects\ex1\ex1\ex1.c(14) : warning C4996: 'scanf': This function or variable may be unsafe. Consider using scanf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>        c:\program files\microsoft visual studio 9.0\vc\include\stdio.h(306) : see declaration of 'scanf'
1>c:\documents and settings\soul\my documents\visual studio 2008\projects\ex1\ex1\ex1.c(27) : warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>        c:\program files\microsoft visual studio 9.0\vc\include\string.h(74) : see declaration of 'strcpy'
1>c:\documents and settings\soul\my documents\visual studio 2008\projects\ex1\ex1\ex1.c(30) : warning C4996: 'strcat': This function or variable may be unsafe. Consider using strcat_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>        c:\program files\microsoft visual studio 9.0\vc\include\string.h(79) : see declaration of 'strcat'
1>c:\documents and settings\soul\my documents\visual studio 2008\projects\ex1\ex1\ex1.c(31) : warning C4996: 'strcat': This function or variable may be unsafe. Consider using strcat_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>        c:\program files\microsoft visual studio 9.0\vc\include\string.h(79) : see declaration of 'strcat'
1>c:\documents and settings\soul\my documents\visual studio 2008\projects\ex1\ex1\ex1.c(35) : warning C4996: 'strcat': This function or variable may be unsafe. Consider using strcat_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>        c:\program files\microsoft visual studio 9.0\vc\include\string.h(79) : see declaration of 'strcat'
1>c:\documents and settings\soul\my documents\visual studio 2008\projects\ex1\ex1\ex1.c(36) : warning C4996: 'strcat': This function or variable may be unsafe. Consider using strcat_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>        c:\program files\microsoft visual studio 9.0\vc\include\string.h(79) : see declaration of 'strcat'
1>c:\documents and settings\soul\my documents\visual studio 2008\projects\ex1\ex1\ex1.c(41) : warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>        c:\program files\microsoft visual studio 9.0\vc\include\string.h(74) : see declaration of 'strcpy'
1>c:\documents and settings\soul\my documents\visual studio 2008\projects\ex1\ex1\ex1.c(43) : warning C4996: 'strcat': This function or variable may be unsafe. Consider using strcat_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>        c:\program files\microsoft visual studio 9.0\vc\include\string.h(79) : see declaration of 'strcat'
1>c:\documents and settings\soul\my documents\visual studio 2008\projects\ex1\ex1\ex1.c(44) : warning C4996: 'strcat': This function or variable may be unsafe. Consider using strcat_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>        c:\program files\microsoft visual studio 9.0\vc\include\string.h(79) : see declaration of 'strcat'
1>c:\documents and settings\soul\my documents\visual studio 2008\projects\ex1\ex1\ex1.c(48) : warning C4996: 'strcat': This function or variable may be unsafe. Consider using strcat_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>        c:\program files\microsoft visual studio 9.0\vc\include\string.h(79) : see declaration of 'strcat'
1>c:\documents and settings\soul\my documents\visual studio 2008\projects\ex1\ex1\ex1.c(49) : warning C4996: 'strcat': This function or variable may be unsafe. Consider using strcat_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>        c:\program files\microsoft visual studio 9.0\vc\include\string.h(79) : see declaration of 'strcat'
1>c:\documents and settings\soul\my documents\visual studio 2008\projects\ex1\ex1\ex1.c(57) : warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>        c:\program files\microsoft visual studio 9.0\vc\include\string.h(74) : see declaration of 'strcpy'
1>c:\documents and settings\soul\my documents\visual studio 2008\projects\ex1\ex1\ex1.c(60) : warning C4996: 'strcat': This function or variable may be unsafe. Consider using strcat_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>        c:\program files\microsoft visual studio 9.0\vc\include\string.h(79) : see declaration of 'strcat'
1>c:\documents and settings\soul\my documents\visual studio 2008\projects\ex1\ex1\ex1.c(61) : warning C4996: 'strcat': This function or variable may be unsafe. Consider using strcat_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>        c:\program files\microsoft visual studio 9.0\vc\include\string.h(79) : see declaration of 'strcat'
1>c:\documents and settings\soul\my documents\visual studio 2008\projects\ex1\ex1\ex1.c(65) : warning C4996: 'strcat': This function or variable may be unsafe. Consider using strcat_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>        c:\program files\microsoft visual studio 9.0\vc\include\string.h(79) : see declaration of 'strcat'
1>c:\documents and settings\soul\my documents\visual studio 2008\projects\ex1\ex1\ex1.c(66) : warning C4996: 'strcat': This function or variable may be unsafe. Consider using strcat_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>        c:\program files\microsoft visual studio 9.0\vc\include\string.h(79) : see declaration of 'strcat'
1>c:\documents and settings\soul\my documents\visual studio 2008\projects\ex1\ex1\ex1.c(71) : warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>        c:\program files\microsoft visual studio 9.0\vc\include\string.h(74) : see declaration of 'strcpy'
1>c:\documents and settings\soul\my documents\visual studio 2008\projects\ex1\ex1\ex1.c(74) : warning C4996: 'strcat': This function or variable may be unsafe. Consider using strcat_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>        c:\program files\microsoft visual studio 9.0\vc\include\string.h(79) : see declaration of 'strcat'
1>c:\documents and settings\soul\my documents\visual studio 2008\projects\ex1\ex1\ex1.c(75) : warning C4996: 'strcat': This function or variable may be unsafe. Consider using strcat_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>        c:\program files\microsoft visual studio 9.0\vc\include\string.h(79) : see declaration of 'strcat'
1>c:\documents and settings\soul\my documents\visual studio 2008\projects\ex1\ex1\ex1.c(79) : warning C4996: 'strcat': This function or variable may be unsafe. Consider using strcat_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>        c:\program files\microsoft visual studio 9.0\vc\include\string.h(79) : see declaration of 'strcat'
1>c:\documents and settings\soul\my documents\visual studio 2008\projects\ex1\ex1\ex1.c(80) : warning C4996: 'strcat': This function or variable may be unsafe. Consider using strcat_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>        c:\program files\microsoft visual studio 9.0\vc\include\string.h(79) : see declaration of 'strcat'
1>Build log was saved at "file://c:\Documents and Settings\Soul\My Documents\Visual Studio 2008\Projects\ex1\ex1\Debug\BuildLog.htm"
1>ex1 - 0 error(s), 21 warning(s)
========== Build: 1 succeeded, 0 failed, 0 up-to-date, 0 skipped ==========

  Hit : 5517     Date : 2009/06/08 10:06



    
tegi83 Çì´õ ÆÄÀ϶§¹®¿¡ ±×·±°¡;; ÈÉ... 2009/06/08  
md.house ¿ö´×À» Àо¼¼¿ä.
warning C4996: 'strcat': This function or variable may be unsafe. Consider using strcat_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS.
2009/06/08  
tegi83 º¸¾È»óÀÇ ¹®Á¦¶§¹®¿¡ ¿ö´×ÀÌ ¶ß´Â°Ç ¾Ë¾Ñ´Âµ¥ ÄÚµùÀº Ʋ¸®Áö¾ÊÀº°Å°°Àºµ¥ ÇÁ·Î±×·¥ÀÌ ¿Ö¾ÈµÅ´ÂÁú ¸ô¶ó¼­ »ý°¢ÁßÀÔ´Ï´Ù.¤Ð¤Ð 2009/06/08  
tegi83 ¿¡±Ã ´©°¡Á» ¾Ë·ÁÁֽøé;; 2009/06/10  
tegi83 ÈÄ......½ºÄµÇÔ¼ö¿¡ ¿Ö ÄÞ¸¶¸¦ÇÞÁö ¤Ð¤Ð 2009/06/10  
  ¹®ÀÚ¿­ 3°³¸¦ ³ôÀº¼ø¼­´ë·Î ¿¬°áÇÏ´ÂÇÁ·Î±×·¥ÀÔ´Ï´Ù[5]     tegi83
06/08 5516
2823 ºñ¹Ð±ÛÀÔ´Ï´Ù  ¹®ÀÚÇ¥     subway
09/01 1
2822   ¹®ÀÚ ¾ÕµÚ ¹Ù²Ù±â[2]     o¿£¿äo
07/19 2951
2821   ¹®ÀÚ Á¶°Ç½Ä??[1]     ghwls2
03/14 2991
2820   ¹«¾ùÀ» °øºÎÇØ¾ß ÇÒÁö °¥ÇǸ¦ ¸øÀâ°Ú½À´Ï´Ù.[5]     smileeagle
05/10 3318
2819   ¹«¾ùÀÌ À߸øµÈ°É±î¿ä???[4]     Malcom
05/30 18225
2818   ¹«¼±·£Ä«µå     jjucho
09/12 2174
2817     ¹«ÇÑ·çÇÁ ¼º°ø~[2]     qkreoghks00
11/10 2343
2816   ¹«ÇÑ·çÇÁ ¸¸µå·Á´Âµ¥¿ä;;;;;[2]     qkreoghks00
11/10 3245
2815   ¹«Áö¸·ÁöÇÏ°Ô ´Ü¼øÇÑ Áú¹®ÀÔ´Ï´Ù.[3]     wepjiny
12/27 3220
2814   ¹öºí¼ÒÆ®°¡¹¹ÁÒ??     zerolhs
09/24 4402
2813   ¹öÆÛ¿À¹öÇ÷ο쿡¼­ Áú¹®Àִµ¥¿ä..     ¸Þ¹ö¸®Å°
05/14 3128
2812   ¹öÆÛ¿À¹öÇ÷ο쿡 °üÇؼ­..[7]     This_Time
11/25 3444
2811   ¹öÆÛ¿À¹öÇ÷οìÁß Illegal instruction[3]     zipds
09/12 10585
2810   ¹öÆÛ¿À¹öÇÃ·Î¿ì °ü·Ã[2]     ?argent
10/05 2757
2809   ¹öÆÛ ¿À¹öÇ÷οì-¿Õ±âÃÊÆí12pdf[2]     Error123
07/24 3501
2808   ¹öÆÛ ¿À¹öÇ÷οì Çؼ®Á» ¤Ð¤Ð[3]     xkdlrjxkdltm
08/24 4930
2807   ¹æÈ­º® Åͳθµ¿¡ ´ëÇؼ­ [Áú¹®(±ä±Þ)][1]     phoenix0
09/08 3185
2806   ¹Ýº¹¹®![2]     son072
01/23 2887
2805   ¹ÙÀÌ¿À½º ¾÷µ¥ÀÌÆ®[3]     williamlee
09/25 2897
[1]..[11][12][13][14][15][16][17][18][19] 20 ..[161]

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