<?xml version="1.0" encoding="euc-kr"?><?xml-stylesheet href="/qna/style/style.xsl" type="text/xsl" media="screen"?>
<rss version="2.0"  xmlns:dc="http://purl.org/dc/elements/1.1/"  xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"  xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" >
    <channel>


        <title>Daum Áö½Ä - ÄÄÇ»ÅÍ,ÀÎÅÍ³Ý &gt; ÇÁ·Î±×·¡¹Ö &gt; C,C++ [ÀüÃ¼]</title>
        <link>http://k.daum.net/qna/list.html?category_id=QCA001</link>
        <lastBuildDate>23 May 2013 16:25:40 GMT</lastBuildDate>
        <description><![CDATA[Daum Áö½Ä ÄÄÇ»ÅÍ,ÀÎÅÍ³Ý > ÇÁ·Î±×·¡¹Ö > C,C++Ä«Å×°í¸®ÀÇ ÀüÃ¼ ÃÖ½Å ¸ñ·Ï]]></description>
            <item>
                <title>if¹® °úÁ¦¸¦ Á» Ç®¾îÁÖ¼¼¿ä..¤Ì¤Ì ±ÞÇÕ´Ï´Ù.(³»°øµå¸²)</title>
                <link>http://k.daum.net/qna/view.html?qid=570M8</link>
                <category>ÄÄÇ»ÅÍ,ÀÎÅÍ³Ý > ÇÁ·Î±×·¡¹Ö > C,C++</category>
                <description>
                    <![CDATA[
                        <table width=100% cellspacing='1' cellpadding='5' border='0' bgcolor='#ffffff' style='margin-right:10px;'>
                            <tbody>
                                <tr>
                                    <td width=100% bgcolor='#ffffff'>
                                    <SPAN style="FONT-SIZE: 12pt"><STRONG>°úÁ¦1)</STRONG></SPAN><BR>
<SPAN style="FONT-SIZE: 12pt"><STRONG>¿µ¾î ½ÃÇè Á¡¼ö¸¦ ÀÔ·Â¹Þ¾Æ 70Á¡ ÀÌ»óÀÌ¸é"ÇÕ°Ý",±× ¿Ü¿¡´Â "ºÒÇÕ°Ý"À» Ãâ·ÂÇÏ´Â ÇÁ·Î±×·¥À» ÀÛ¼ºÇÏ½Ã¿À.</STRONG></SPAN><BR>
<STRONG></STRONG>&nbsp;<BR>
<SPAN style="FONT-SIZE: 12pt"><STRONG>°úÁ¦2)</STRONG></SPAN><BR>
<SPAN style="FONT-SIZE: 12pt"><STRONG>±¹¾î, ¿µ¾î ½ÃÇè Á¡¼ö¸¦ ÀÔ·Â¹Þ¾Æ Æò±Õ Á¡¼ö°¡ 80Á¡ÀÌ»óÀÌ¸é "ÇÕ°Ý", ±×¿Ü¿¡´Â "ºÒÇÕ°Ý"À» Ãâ·ÂÇÏ´Â ÇÁ·Î±×·¥À» ÀÛ¼ºÇÏ½Ã¿À.</STRONG></SPAN><BR>
<STRONG></STRONG>&nbsp;<BR>
<SPAN style="FONT-SIZE: 12pt"><STRONG>°úÁ¦3)</STRONG></SPAN><BR>
<SPAN style="FONT-SIZE: 12pt"><STRONG>±¹¾î, ¼öÇÐ ½ÃÇè Á¡¼ö¸¦ ÀÔ·Â ¹Þ¾Æ Æò±ÕÀÌ 70Á¡ ÀÌ»óÀÌ°í °¢ °ú¸ñÀÇ Á¡¼ö°¡ 60Á¡ ÀÌ»óÀÎ °æ¿ì"ÇÕ°Ý"À» Ãâ·ÂÇÏ°í, ±× ¿Ü¿¡´Â "ºÒÇÕ°Ý"À» Ãâ·ÂÇÏ´Â ÇÁ·Î±×·¥À» ÀÛ¼ºÇÏ½Ã¿À.</STRONG></SPAN><BR>
<STRONG></STRONG>&nbsp;<BR>
<SPAN style="FONT-SIZE: 12pt"><STRONG>°úÁ¦4)</STRONG></SPAN><BR>
<SPAN style="FONT-SIZE: 12pt"><STRONG>Á¤¼ö¸¦ ÀÔ·Â¹Þ¾Æ ±×¼ö°¡ Â¦¼öÀÎÁö, È¦¼ö ÀÎÁö ÆÇº°ÇÏ´Â ÇÁ·Î±×·¥À» ÀÛ¼ºÇÏ½Ã¿À.</STRONG></SPAN><BR>
<SPAN style="FONT-SIZE: 12pt"></SPAN>&nbsp;<BR>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    <table width=100% border='0' cellpadding='0' cellspacing='0'>
                    <tr>
                    <td align='left' valign='top'>
                                <tr>
                                    <td nowrap style="position:relative" align='left'>
<a href="http://k.daum.net/qna/qna_index.html" class="bG12">Q&A Áö½Ä</a> &gt;
<a href="http://k.daum.net/qna/list.html?category_id=QC" class="bG12">ÄÄÇ»ÅÍ,ÀÎÅÍ³Ý</a> &gt;
<a href="http://k.daum.net/qna/list.html?category_id=QCA" class="bG12">ÇÁ·Î±×·¡¹Ö</a> &gt;
                <a href="http://k.daum.net/qna/list.html?category_id=QCA001" class="bG12"><b>C,C++</b></a>
                                    </td>
                                    <td nowrap style="position:relative" align='right'>
                                                <a href="http://k.daum.net/qna/answer.html?qid=570M8" onFocus="this.blur();"><img src="http://i2.daumcdn.net/imgsrc.search/knowledge4/2009/new/btn_rss_rely.gif" width="87" height="33" alt="´äº¯ÇÏ±â" border='0'/></a>
                                    </td>
                                </tr>
                        </table>
                    ]]>
                </description>
                <author>ºñ°ø°³´Ô</author>
                <pubDate>22 May 2013 00:16:35 GMT</pubDate>
            </item>
            <item>
                <title>Grid/Canvas¸¦ ÀÌ¹ÌÁö·Î ÀúÀåÇÏ·Á°í ÇÏ´Âµ¥ À©µµ¿ì8¿¡¼­´Â RenderTargetBitmap¸í·É¾î°¡ ¾ÈµÇ³×¿ä...</title>
                <link>http://k.daum.net/qna/view.html?qid=56yU6</link>
                <category>ÄÄÇ»ÅÍ,ÀÎÅÍ³Ý > ÇÁ·Î±×·¡¹Ö > C,C++</category>
                <description>
                    <![CDATA[
                        <table width=100% cellspacing='1' cellpadding='5' border='0' bgcolor='#ffffff' style='margin-right:10px;'>
                            <tbody>
                                <tr>
                                    <td width=100% bgcolor='#ffffff'>
                                    <DIV><H1 style="MARGIN: 0pt; FONT-FAMILY: verdana; COLOR: rgb(200,66,5)">QnA</H1><P style="MARGIN: 0pt; FONT-FAMILY: verdana; COLOR: rgb(200,66,5)">¡¡<BR><TABLE style="BORDER-BOTTOM: medium none; BORDER-LEFT: medium none; BORDER-COLLAPSE: collapse; BORDER-TOP: medium none; BORDER-RIGHT: medium none" class=MsoTableGrid border=1 cellSpacing=0 cellPadding=0 width="100%"><TBODY><TR><TD style="BORDER-BOTTOM: black 1pt solid; BORDER-LEFT: black 1pt solid; PADDING-BOTTOM: 0cm; BACKGROUND-COLOR: transparent; PADDING-LEFT: 5.4pt; PADDING-RIGHT: 5.4pt; BORDER-TOP: black 1pt solid; BORDER-RIGHT: black 1pt solid; PADDING-TOP: 0cm" vAlign=top><P style="MARGIN: 0cm 0cm 0pt"><FONT color=#000000 size=2 face="¸¼Àº °íµñ">»ç¿ë¾ð¾î <FONT color=#e31600>(Ä¥ÇØÁÖ¼¼¿ä) =&gt;</FONT> (C#,VB)</FONT><BR></TD></TR><TR><TD style="BORDER-BOTTOM: black 1pt solid; BORDER-LEFT: black 1pt solid; PADDING-BOTTOM: 0cm; BACKGROUND-COLOR: transparent; PADDING-LEFT: 5.4pt; PADDING-RIGHT: 5.4pt; BORDER-TOP: rgb(212,208,200); BORDER-RIGHT: black 1pt solid; PADDING-TOP: 0cm" vAlign=top><P style="MARGIN: 0cm 0cm 0pt"><FONT color=#000000 size=2 face="¸¼Àº °íµñ">»ç¿ëÅø (VS)&nbsp;:&nbsp;VS2012</FONT><BR></TD></TR><TR><TD style="BORDER-BOTTOM: black 1pt solid; BORDER-LEFT: black 1pt solid; PADDING-BOTTOM: 0cm; BACKGROUND-COLOR: transparent; PADDING-LEFT: 5.4pt; PADDING-RIGHT: 5.4pt; BORDER-TOP: rgb(212,208,200); BORDER-RIGHT: black 1pt solid; PADDING-TOP: 0cm" vAlign=top><P style="MARGIN: 0cm 0cm 0pt"><FONT color=#000000 size=2 face="¸¼Àº °íµñ">¿î¿µÃ¼Á¦ (OS) :&nbsp;WINDOWS 8</FONT><BR></TD></TR></TBODY></TABLE><BR><BR><BR>À©µµ¿ì 8¿¡¼­ Grid/Canvas¸¦ ÀÌ¹ÌÁö·Î ÀúÀåÇÏ·Á°í ÇÏ´Âµ¥ À©µµ¿ì8¿¡¼­´Â RenderTargetBitmap¸í·É¾î°¡ ¾ø´Â°Ç°¡¿ä???<BR><BR>È¤½Ã ´Ù¸¥ ¹æ¹ýÀÌ ÀÕÀ»±î¿ä??<BR></DIV>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    <table width=100% border='0' cellpadding='0' cellspacing='0'>
                    <tr>
                    <td align='left' valign='top'>
                                <tr>
                                    <td nowrap style="position:relative" align='left'>
<a href="http://k.daum.net/qna/qna_index.html" class="bG12">Q&A Áö½Ä</a> &gt;
<a href="http://k.daum.net/qna/list.html?category_id=QC" class="bG12">ÄÄÇ»ÅÍ,ÀÎÅÍ³Ý</a> &gt;
<a href="http://k.daum.net/qna/list.html?category_id=QCA" class="bG12">ÇÁ·Î±×·¡¹Ö</a> &gt;
                <a href="http://k.daum.net/qna/list.html?category_id=QCA001" class="bG12"><b>C,C++</b></a>
                                    </td>
                                    <td nowrap style="position:relative" align='right'>
                                                <a href="http://k.daum.net/qna/answer.html?qid=56yU6" onFocus="this.blur();"><img src="http://i2.daumcdn.net/imgsrc.search/knowledge4/2009/new/btn_rss_rely.gif" width="87" height="33" alt="´äº¯ÇÏ±â" border='0'/></a>
                                    </td>
                                </tr>
                        </table>
                    ]]>
                </description>
                    <author>¿øºó±Ù¿µ´Ô</author>
                <pubDate>21 May 2013 08:14:22 GMT</pubDate>
            </item>
            <item>
                <title>Windows 8 ToolkitÀ» ÀÌ¿ëÇØ¼­ ±×·¡ÇÁ¸¦ ±×¸®·Á°í ÇÏ´Âµ¥ È­¸éÀÌ ³ª¿ÀÁú ¾Ê¾Æ¿ä..</title>
                <link>http://k.daum.net/qna/view.html?qid=56wmY</link>
                <category>ÄÄÇ»ÅÍ,ÀÎÅÍ³Ý > ÇÁ·Î±×·¡¹Ö > C,C++</category>
                <description>
                    <![CDATA[
                        <table width=100% cellspacing='1' cellpadding='5' border='0' bgcolor='#ffffff' style='margin-right:10px;'>
                            <tbody>
                                <tr>
                                    <td width=100% bgcolor='#ffffff'>
                                    <DIV><H1 style="MARGIN: 0pt; FONT-FAMILY: verdana; COLOR: rgb(200,66,5)">QnA</H1><P style="MARGIN: 0pt; FONT-FAMILY: verdana; COLOR: rgb(200,66,5)">¡¡<BR><TABLE style="BORDER-BOTTOM: medium none; BORDER-LEFT: medium none; BORDER-COLLAPSE: collapse; BORDER-TOP: medium none; BORDER-RIGHT: medium none" class=MsoTableGrid border=1 cellSpacing=0 cellPadding=0 width="100%"><TBODY><TR><TD style="BORDER-BOTTOM: black 1pt solid; BORDER-LEFT: black 1pt solid; PADDING-BOTTOM: 0cm; BACKGROUND-COLOR: transparent; PADDING-LEFT: 5.4pt; PADDING-RIGHT: 5.4pt; BORDER-TOP: black 1pt solid; BORDER-RIGHT: black 1pt solid; PADDING-TOP: 0cm" vAlign=top><P style="MARGIN: 0cm 0cm 0pt"><FONT color=#000000 size=2 face="¸¼Àº °íµñ">»ç¿ë¾ð¾î <FONT color=#e31600>(Ä¥ÇØÁÖ¼¼¿ä) =&gt;</FONT> (C#,VB)</FONT><BR></TD></TR><TR><TD style="BORDER-BOTTOM: black 1pt solid; BORDER-LEFT: black 1pt solid; PADDING-BOTTOM: 0cm; BACKGROUND-COLOR: transparent; PADDING-LEFT: 5.4pt; PADDING-RIGHT: 5.4pt; BORDER-TOP: rgb(212,208,200); BORDER-RIGHT: black 1pt solid; PADDING-TOP: 0cm" vAlign=top><P style="MARGIN: 0cm 0cm 0pt"><FONT color=#000000 size=2 face="¸¼Àº °íµñ">»ç¿ëÅø (VS)&nbsp;: vs2012</FONT><BR></TD></TR><TR><TD style="BORDER-BOTTOM: black 1pt solid; BORDER-LEFT: black 1pt solid; PADDING-BOTTOM: 0cm; BACKGROUND-COLOR: transparent; PADDING-LEFT: 5.4pt; PADDING-RIGHT: 5.4pt; BORDER-TOP: rgb(212,208,200); BORDER-RIGHT: black 1pt solid; PADDING-TOP: 0cm" vAlign=top><P style="MARGIN: 0cm 0cm 0pt"><FONT color=#000000 size=2 face="¸¼Àº °íµñ">¿î¿µÃ¼Á¦ (OS) :&nbsp;windows 8</FONT><BR></TD></TR></TBODY></TABLE><BR><BR><BR>Á¦°¡ Windows 8 Toolkit(<A href="http://modernuitoolkit.codeplex.com/"><U><FONT color=#0066cc>http://modernuitoolkit.codeplex.com/</FONT></U></A>)À» ÀÌ¿ëÇØ¼­ ±×·¡ÇÁ¸¦ ±×¸®·Á°í ÇÏ°Åµç¿ä.<BR><BR>¸Õ¼­ ÇÁ·ÎÁ§Æ®¿¡&nbsp;ModernUI.Toolkit.Data.Charting.dllÀ» ÂüÁ¶ÇØÁÖ°í<BR><BR>xamlÆÄÀÏ¿¡&nbsp;&nbsp;&nbsp;&nbsp;<BR>xmlns:series="using:ModernUI.Toolkit.Data.Charting.Charts.Series"&nbsp;&nbsp;<BR>xmlns:Chart="using:ModernUI.Toolkit.Data.Charting.Charts.Chart"&nbsp;<BR><BR>Ãß°¡ÇØÁÖ°í<BR><BR>&nbsp;&lt;Chart:Chart x:Name="Chart"&nbsp; HorizontalAlignment="Left" Title="Column Chart" Margin="-2,153,0,0" VerticalAlignment="Top" Width="318" Height="190"&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;Chart:Chart.Series&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;series:ColumnSeries<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Title="Population"<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ItemsSource="{Binding Items}"<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; IndependentValueBinding="{Binding Name}"<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; DependentValueBinding="{Binding Value}" IsSelectionEnabled="True"/&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/Chart:Chart.Series&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/Chart:Chart&gt;<BR><BR>¸¦ ½áÁÝ´Ï´Ù.<BR><BR>±×¸®°í&nbsp;<BR><BR>&nbsp;public MainPage()<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<BR>this.InitializeComponent();<BR>&nbsp;List&lt;Name-valueItem&gt; items = new List&lt;Name-valueItem&gt;();<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; items.Add(new Name-valueItem() { Name = "Test1", Value = 40 });<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; items.Add(new Name-valueItem() { Name = "Test2", Value = 50 });<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; items.Add(new Name-valueItem() { Name = "Test3", Value = 20 });<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; items.Add(new Name-valueItem() { Name = "Test4", Value = 10 });<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; items.Add(new Name-valueItem() { Name = "Test5", Value = 100 });<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; items.Add(new Name-valueItem() { Name = "Test6", Value = 40 });<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; items.Add(new Name-valueItem() { Name = "Test7", Value = 50 });<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; items.Add(new Name-valueItem() { Name = "Test8", Value = 20 });<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; items.Add(new Name-valueItem() { Name = "Test9", Value = 10 });<BR><BR>((ColumnSeries)Chart.Series[0]).ItemsSource = items; <BR>}<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; public class Name-valueItem<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; private string _name;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; public string Name<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; get { return _name; }<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; set { _name = value; }<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; private int _value;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; public int Value<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; get { return _value; }<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; set { _value = value; }<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; public Name-valueItem()<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<BR><BR><BR><BR>ÇØÁá°Åµç¿ä.. ±×·±µ¥ ÆäÀÌÁö¿¡ Ç¥±â°¡ ¾ÈµÇ°í °ËÁ¤»ö È­¸é¸¸ º¸ÀÌ³×¿ä.<BR><BR>¿Ö ±×·±Áö µµÅë ¸ð¸£°Ú¾î¿ä.. ¼Ò½ºÁ» È®ÀÎÇØÁÖ¼¼¿ä.<BR><BR><BR><a href="http://cfile300.uf.daum.net/attach/235CF043519A291C01E92B"><img src="http://i1.daumcdn.net/icon/editor/p_zip_s.gif?rv=1.0.1" border="0" alt="Ã·ºÎÆÄÀÏ" class="vam"/> App1.zip</a><BR><BR></DIV>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    <table width=100% border='0' cellpadding='0' cellspacing='0'>
                    <tr>
                    <td align='left' valign='top'>
                                <tr>
                                    <td nowrap style="position:relative" align='left'>
<a href="http://k.daum.net/qna/qna_index.html" class="bG12">Q&A Áö½Ä</a> &gt;
<a href="http://k.daum.net/qna/list.html?category_id=QC" class="bG12">ÄÄÇ»ÅÍ,ÀÎÅÍ³Ý</a> &gt;
<a href="http://k.daum.net/qna/list.html?category_id=QCA" class="bG12">ÇÁ·Î±×·¡¹Ö</a> &gt;
                <a href="http://k.daum.net/qna/list.html?category_id=QCA001" class="bG12"><b>C,C++</b></a>
                                    </td>
                                    <td nowrap style="position:relative" align='right'>
                                                <a href="http://k.daum.net/qna/answer.html?qid=56wmY" onFocus="this.blur();"><img src="http://i2.daumcdn.net/imgsrc.search/knowledge4/2009/new/btn_rss_rely.gif" width="87" height="33" alt="´äº¯ÇÏ±â" border='0'/></a>
                                    </td>
                                </tr>
                        </table>
                    ]]>
                </description>
                    <author>¿øºó±Ù¿µ´Ô</author>
                <pubDate>20 May 2013 13:46:13 GMT</pubDate>
            </item>
            <item>
                <title>fprintf_s ¿¡¶ó</title>
                <link>http://k.daum.net/qna/view.html?qid=56u2k</link>
                <category>ÄÄÇ»ÅÍ,ÀÎÅÍ³Ý > ÇÁ·Î±×·¡¹Ö > C,C++</category>
                <description>
                    <![CDATA[
                        <table width=100% cellspacing='1' cellpadding='5' border='0' bgcolor='#ffffff' style='margin-right:10px;'>
                            <tbody>
                                <tr>
                                    <td width=100% bgcolor='#ffffff'>
                                    <p>&nbsp;FILE *fp;<br>&nbsp;fopen_s(&amp;fp, pathlow_f, "wb");<br>&nbsp;for(int i=0; i&lt;(...) ;i++)<br>&nbsp;{<br>&nbsp;...<br>&nbsp;&nbsp;&nbsp;s.Format(_T("9%.3d%.3d%.3d%.3d%.4d%.4d"), (0), (0), (0), (0), (0), (0))<br>&nbsp;&nbsp;fprintf_s(fp, "%s\n", (s));<br>&nbsp;}<br>&nbsp;fclose(fp);</p><p>&nbsp;</p><p>ÀÌ·± ¹®ÀåÀÔ´Ï´Ù.</p><p>¿Ö ¿¡·¯¸Þ½ÃÁö°¡ ¶ß´ÂÁö ÇØ°á ºÎÅ¹µå¸³´Ï´Ù.</p><p>&nbsp;</p><p style="text-align: center;"><img src="http://cfile111.uf.daum.net/image/2434483751990BF8253D61" class="txc-image" width="451" style="clear: none; float: none;" exif="{}" actualwidth="451" /></p><p></p><p>&nbsp;</p><p>ºü¸¥ ´äº¯ ºÎÅ¹µå¸®°Ú½À´Ï´Ù. °¨»çÇÕ´Ï´Ù.<br></p>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    <table width=100% border='0' cellpadding='0' cellspacing='0'>
                    <tr>
                    <td align='left' valign='top'>
                                <tr>
                                    <td nowrap style="position:relative" align='left'>
<a href="http://k.daum.net/qna/qna_index.html" class="bG12">Q&A Áö½Ä</a> &gt;
<a href="http://k.daum.net/qna/list.html?category_id=QC" class="bG12">ÄÄÇ»ÅÍ,ÀÎÅÍ³Ý</a> &gt;
<a href="http://k.daum.net/qna/list.html?category_id=QCA" class="bG12">ÇÁ·Î±×·¡¹Ö</a> &gt;
                <a href="http://k.daum.net/qna/list.html?category_id=QCA001" class="bG12"><b>C,C++</b></a>
                                    </td>
                                    <td nowrap style="position:relative" align='right'>
                                                <a href="http://k.daum.net/qna/answer.html?qid=56u2k" onFocus="this.blur();"><img src="http://i2.daumcdn.net/imgsrc.search/knowledge4/2009/new/btn_rss_rely.gif" width="87" height="33" alt="´äº¯ÇÏ±â" border='0'/></a>
                                    </td>
                                </tr>
                        </table>
                    ]]>
                </description>
                    <author>suh´Ô</author>
                <pubDate>19 May 2013 17:32:35 GMT</pubDate>
            </item>
            <item>
                <title>C¾ð¾î ÀÎµ¥ Á¤¹æÇà·ÄÀÇ ´ë°¢¼ººÐÀÇ ÇÕ ±¸ÇÏ±â ÀÎµ¥¿ä</title>
                <link>http://k.daum.net/qna/view.html?qid=56sSM</link>
                <category>ÄÄÇ»ÅÍ,ÀÎÅÍ³Ý > ÇÁ·Î±×·¡¹Ö > C,C++</category>
                <description>
                    <![CDATA[
                        <table width=100% cellspacing='1' cellpadding='5' border='0' bgcolor='#ffffff' style='margin-right:10px;'>
                            <tbody>
                                <tr>
                                    <td width=100% bgcolor='#ffffff'>
                                    <p><p>Á¤¹æÇà·ÄÀÇ ´ë°¢¼ººÐÀÇ ÇÕ ±¸ÇÏ±â ÀÎµ¥¿ä</p><p><br></p><p>(1) Çà·ÄÀº ³­¼ö°ª ÀúÀå</p><p>(2) Çà·ÄÀ» Ãâ·Â</p><p>(3) \ ´ë°¢¼±ÇÕ : °ªÃâ·Â ¿¹ 15</p><p>(4) / ´ë°¢¼®ÇÕ : 22</p><p><br></p><p>¾î¶»°Ô ÇÏ½ÇÁÙ ¾Æ½Ã´ÂºÐ ºü¸¥ ´äº¯ ÇØÁÖ½Ã¸é °¨»çÇÏ°Ú½À´Ï´Ù.&nbsp;</p></p>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    <table width=100% border='0' cellpadding='0' cellspacing='0'>
                    <tr>
                    <td align='left' valign='top'>
                                <tr>
                                    <td nowrap style="position:relative" align='left'>
<a href="http://k.daum.net/qna/qna_index.html" class="bG12">Q&A Áö½Ä</a> &gt;
<a href="http://k.daum.net/qna/list.html?category_id=QC" class="bG12">ÄÄÇ»ÅÍ,ÀÎÅÍ³Ý</a> &gt;
<a href="http://k.daum.net/qna/list.html?category_id=QCA" class="bG12">ÇÁ·Î±×·¡¹Ö</a> &gt;
                <a href="http://k.daum.net/qna/list.html?category_id=QCA001" class="bG12"><b>C,C++</b></a>
                                    </td>
                                    <td nowrap style="position:relative" align='right'>
                                                <a href="http://k.daum.net/qna/answer.html?qid=56sSM" onFocus="this.blur();"><img src="http://i2.daumcdn.net/imgsrc.search/knowledge4/2009/new/btn_rss_rely.gif" width="87" height="33" alt="´äº¯ÇÏ±â" border='0'/></a>
                                    </td>
                                </tr>
                        </table>
                    ]]>
                </description>
                <author>ºñ°ø°³´Ô</author>
                <pubDate>19 May 2013 08:20:34 GMT</pubDate>
            </item>
            <item>
                <title>C¹®Á¦ Áú¹®ÀÔ´Ï´Ù~</title>
                <link>http://k.daum.net/qna/view.html?qid=56s5P</link>
                <category>ÄÄÇ»ÅÍ,ÀÎÅÍ³Ý > ÇÁ·Î±×·¡¹Ö > C,C++</category>
                <description>
                    <![CDATA[
                        <table width=100% cellspacing='1' cellpadding='5' border='0' bgcolor='#ffffff' style='margin-right:10px;'>
                            <tbody>
                                <tr>
                                    <td width=100% bgcolor='#ffffff'>
                                    1. #include&lt;stdio.h&gt;<br />main(){<br />int *q;<br />char *r;<br />char p[]=&#39;&#39;abcdefghijklmnopqrstuvwxyz&#39;&#39;;<br />*p=(*p)+4;<br />q=(int*)&amp;(p[4]);<br />r=(char*)(q+2);<br />r=r+3;<br />print(&#8220;%c&#8221;, *r);<br />}<br /><br />*p=(*p)+4´Â ¹è¿­¿¡µé¾îÀÖ´Â°ª+4ÀÌÀÝ¾Æ¿ä. ±×·³ a¾Æ½ºÅ°ÄÚµå°ª¿¡ 4°¡ ´õÇØÁ®¼­ p´Â e¸¦ °¡¸®Å°°ÔµÇ´Â °Ç°¡¿ä?<br />±×´ÙÀ½ÄÚµå¿¡¼­ p[4]ÀÇ ÁÖ¼Ò°ªÀ» q¿¡ ³Ñ±â°Ô µÇ´Âµ¥ ±×·³ p¿Í q´Â °°Àº °÷À» °¡¸®Å°°ÔµÇ°í q+2¿¡¼­ IntÇü¸¸Å­ 8ÀÌµ¿ÇØ¼­ mÀ»°¡¸®Å²ÈÄ ´Ù½Ã r+3À» ÇØ¼­ ÃÖÁ¾ÀûÀ¸·Î p°¡ ³ª¿À´Â°Ô ¸Â³ª¿ä?  Á¦ Ç®ÀÌ¹æ½Ä¿¡ È®½ÅÀÌ¾ø¾î¼­... Æ²¸°°÷ÀÌ ÀÖÀ¸¸é °íÃÄÁÖ½Ã¸é °¨»çÇÏ°Ú½À´Ï´Ù.<br /><br /><br />2. C¿¡¼­ 3/2¸¦ ÇÒ°æ¿ì ³ª¸ÓÁö´Â ¹ö¸®°í 1ÀÌµÇ³ª¿ä? VB¿¡¼­ \´Â Á¤¼öÇüÀ¸·Î /´Â ºÎµ¿¼Ò¼öÁ¡ ¹æ½ÄÀ¸·Î Ç¥±âÇÑ´Ù°í µÇ¾îÀÖ´Âµ¥<br />C¿¡¼­ float a=3/2¸¦ ÇÒ°æ¿ì 1·Î ¿¬»ê µÈ ÈÄ 1.0À¸·Î ¹Ù²î°í VB´Â Ã³À½ºÎÅÍ 1.5·Î ¿¬»ê µÇ´Â°Ç°¡¿ä?
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    <table width=100% border='0' cellpadding='0' cellspacing='0'>
                    <tr>
                    <td align='left' valign='top'>
                                <tr>
                                    <td nowrap style="position:relative" align='left'>
<a href="http://k.daum.net/qna/qna_index.html" class="bG12">Q&A Áö½Ä</a> &gt;
<a href="http://k.daum.net/qna/list.html?category_id=QC" class="bG12">ÄÄÇ»ÅÍ,ÀÎÅÍ³Ý</a> &gt;
<a href="http://k.daum.net/qna/list.html?category_id=QCA" class="bG12">ÇÁ·Î±×·¡¹Ö</a> &gt;
                <a href="http://k.daum.net/qna/list.html?category_id=QCA001" class="bG12"><b>C,C++</b></a>
                                    </td>
                                    <td nowrap style="position:relative" align='right'>
                                                <a href="http://k.daum.net/qna/answer.html?qid=56s5P" onFocus="this.blur();"><img src="http://i2.daumcdn.net/imgsrc.search/knowledge4/2009/new/btn_rss_rely.gif" width="87" height="33" alt="´äº¯ÇÏ±â" border='0'/></a>
                                    </td>
                                </tr>
                        </table>
                    ]]>
                </description>
                    <author>0ÇÝ¹Ý0´Ô</author>
                <pubDate>19 May 2013 05:54:37 GMT</pubDate>
            </item>
            <item>
                <title>c¾ð¾î ¿¬°á¸®½ºÆ® ´ÙÇ×½Ä °ö¼À Áú¹®ÀÔ´Ï´Ù</title>
                <link>http://k.daum.net/qna/view.html?qid=56ra1</link>
                <category>ÄÄÇ»ÅÍ,ÀÎÅÍ³Ý > ÇÁ·Î±×·¡¹Ö > C,C++</category>
                <description>
                    <![CDATA[
                        <table width=100% cellspacing='1' cellpadding='5' border='0' bgcolor='#ffffff' style='margin-right:10px;'>
                            <tbody>
                                <tr>
                                    <td width=100% bgcolor='#ffffff'>
                                    <p><div style="color: rgb(64, 64, 64); font-family: ±¼¸², Gulim; line-height: 19px;">[code]</div><span style="color: rgb(64, 64, 64); font-family: ±¼¸², Gulim; line-height: 19px;">&nbsp;#include &lt;stdio.h&gt;&nbsp;</span><div style="color: rgb(64, 64, 64); font-family: ±¼¸², Gulim; line-height: 19px;">#include &lt;stdlib.h&gt;&nbsp;</div><div style="color: rgb(64, 64, 64); font-family: ±¼¸², Gulim; line-height: 19px;"><br></div><div style="color: rgb(64, 64, 64); font-family: ±¼¸², Gulim; line-height: 19px;">typedef struct Listnode{&nbsp;</div><div style="color: rgb(64, 64, 64); font-family: ±¼¸², Gulim; line-height: 19px;">&nbsp; &nbsp;float coef;&nbsp;</div><div style="color: rgb(64, 64, 64); font-family: ±¼¸², Gulim; line-height: 19px;">&nbsp; &nbsp;int expo;&nbsp;</div><div style="color: rgb(64, 64, 64); font-family: ±¼¸², Gulim; line-height: 19px;">&nbsp; &nbsp;struct Listnode* link;&nbsp;</div><div style="color: rgb(64, 64, 64); font-family: ±¼¸², Gulim; line-height: 19px;">}Listnode;&nbsp;</div><div style="color: rgb(64, 64, 64); font-family: ±¼¸², Gulim; line-height: 19px;"><br></div><div style="color: rgb(64, 64, 64); font-family: ±¼¸², Gulim; line-height: 19px;">typedef struct Listhead{&nbsp;</div><div style="color: rgb(64, 64, 64); font-family: ±¼¸², Gulim; line-height: 19px;">&nbsp; &nbsp;Listnode* head;&nbsp;</div><div style="color: rgb(64, 64, 64); font-family: ±¼¸², Gulim; line-height: 19px;">}Listhead;</div><div style="color: rgb(64, 64, 64); font-family: ±¼¸², Gulim; line-height: 19px;"><br></div><div style="color: rgb(64, 64, 64); font-family: ±¼¸², Gulim; line-height: 19px;">Listhead* createlinkedlist(void)&nbsp;</div><div style="color: rgb(64, 64, 64); font-family: ±¼¸², Gulim; line-height: 19px;">{&nbsp;</div><div style="color: rgb(64, 64, 64); font-family: ±¼¸², Gulim; line-height: 19px;">&nbsp; &nbsp;Listhead* L;&nbsp;</div><div style="color: rgb(64, 64, 64); font-family: ±¼¸², Gulim; line-height: 19px;">&nbsp; &nbsp;L=(Listhead *)malloc( sizeof(Listhead));&nbsp;</div><div style="color: rgb(64, 64, 64); font-family: ±¼¸², Gulim; line-height: 19px;">&nbsp; &nbsp;L-&gt;head= NULL;&nbsp;</div><div style="color: rgb(64, 64, 64); font-family: ±¼¸², Gulim; line-height: 19px;">&nbsp; &nbsp;return L;&nbsp;</div><div style="color: rgb(64, 64, 64); font-family: ±¼¸², Gulim; line-height: 19px;">}&nbsp;</div><div style="color: rgb(64, 64, 64); font-family: ±¼¸², Gulim; line-height: 19px;"><br></div><div style="color: rgb(64, 64, 64); font-family: ±¼¸², Gulim; line-height: 19px;">void addlastnode(Listhead* L, float coef, int expo)&nbsp;</div><div style="color: rgb(64, 64, 64); font-family: ±¼¸², Gulim; line-height: 19px;">{&nbsp;</div><div style="color: rgb(64, 64, 64); font-family: ±¼¸², Gulim; line-height: 19px;">&nbsp; &nbsp;Listnode* newnode;&nbsp;</div><div style="color: rgb(64, 64, 64); font-family: ±¼¸², Gulim; line-height: 19px;">&nbsp; &nbsp;Listnode* p;&nbsp;</div><div style="color: rgb(64, 64, 64); font-family: ±¼¸², Gulim; line-height: 19px;">&nbsp; &nbsp;newnode = (Listnode *)malloc(sizeof(Listnode));&nbsp;</div><div style="color: rgb(64, 64, 64); font-family: ±¼¸², Gulim; line-height: 19px;">&nbsp; &nbsp;newnode-&gt;coef=coef;&nbsp;</div><div style="color: rgb(64, 64, 64); font-family: ±¼¸², Gulim; line-height: 19px;">&nbsp; &nbsp;newnode-&gt;expo=expo;&nbsp;</div><div style="color: rgb(64, 64, 64); font-family: ±¼¸², Gulim; line-height: 19px;">&nbsp; &nbsp;newnode-&gt;link= NULL;&nbsp;</div><div style="color: rgb(64, 64, 64); font-family: ±¼¸², Gulim; line-height: 19px;">&nbsp; &nbsp;if(L-&gt;head== NULL)&nbsp;</div><div style="color: rgb(64, 64, 64); font-family: ±¼¸², Gulim; line-height: 19px;">&nbsp; &nbsp;{&nbsp;</div><div style="color: rgb(64, 64, 64); font-family: ±¼¸², Gulim; line-height: 19px;">&nbsp; &nbsp; &nbsp; L-&gt;head=newnode;&nbsp;</div><div style="color: rgb(64, 64, 64); font-family: ±¼¸², Gulim; line-height: 19px;">&nbsp; &nbsp; &nbsp; return;&nbsp;</div><div style="color: rgb(64, 64, 64); font-family: ±¼¸², Gulim; line-height: 19px;">&nbsp; &nbsp;}&nbsp;</div><div style="color: rgb(64, 64, 64); font-family: ±¼¸², Gulim; line-height: 19px;">&nbsp; &nbsp;else&nbsp;</div><div style="color: rgb(64, 64, 64); font-family: ±¼¸², Gulim; line-height: 19px;">&nbsp; &nbsp;{&nbsp;</div><div style="color: rgb(64, 64, 64); font-family: ±¼¸², Gulim; line-height: 19px;">&nbsp; &nbsp; &nbsp; p=L-&gt;head;&nbsp;</div><div style="color: rgb(64, 64, 64); font-family: ±¼¸², Gulim; line-height: 19px;">&nbsp; &nbsp; &nbsp; while(p-&gt;link!= NULL)&nbsp;</div><div style="color: rgb(64, 64, 64); font-family: ±¼¸², Gulim; line-height: 19px;">&nbsp; &nbsp; &nbsp; {&nbsp;</div><div style="color: rgb(64, 64, 64); font-family: ±¼¸², Gulim; line-height: 19px;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;p=p-&gt;link;&nbsp;</div><div style="color: rgb(64, 64, 64); font-family: ±¼¸², Gulim; line-height: 19px;">&nbsp; &nbsp; &nbsp; }&nbsp;</div><div style="color: rgb(64, 64, 64); font-family: ±¼¸², Gulim; line-height: 19px;">&nbsp; &nbsp;}&nbsp;</div><div style="color: rgb(64, 64, 64); font-family: ±¼¸², Gulim; line-height: 19px;">&nbsp; &nbsp;p-&gt;link=newnode;&nbsp;</div><div style="color: rgb(64, 64, 64); font-family: ±¼¸², Gulim; line-height: 19px;">}&nbsp;</div><div style="color: rgb(64, 64, 64); font-family: ±¼¸², Gulim; line-height: 19px;">void mulpoly(Listhead* a,Listhead* b,Listhead* c)&nbsp;</div><div style="color: rgb(64, 64, 64); font-family: ±¼¸², Gulim; line-height: 19px;">{&nbsp;</div><div style="color: rgb(64, 64, 64); font-family: ±¼¸², Gulim; line-height: 19px;">&nbsp; &nbsp;Listnode* pa=a-&gt;head;&nbsp;</div><div style="color: rgb(64, 64, 64); font-family: ±¼¸², Gulim; line-height: 19px;">&nbsp; &nbsp;Listnode* pb=b-&gt;head;&nbsp;</div><div style="color: rgb(64, 64, 64); font-family: ±¼¸², Gulim; line-height: 19px;">&nbsp; &nbsp;float sum;&nbsp;</div><div style="color: rgb(64, 64, 64); font-family: ±¼¸², Gulim; line-height: 19px;">&nbsp; &nbsp;int exposum;&nbsp;</div><div style="color: rgb(64, 64, 64); font-family: ±¼¸², Gulim; line-height: 19px;">&nbsp; &nbsp;while(pa)&nbsp;</div><div style="color: rgb(64, 64, 64); font-family: ±¼¸², Gulim; line-height: 19px;">&nbsp; &nbsp;{&nbsp;</div><div style="color: rgb(64, 64, 64); font-family: ±¼¸², Gulim; line-height: 19px;">&nbsp; &nbsp; &nbsp; while(pb)&nbsp;</div><div style="color: rgb(64, 64, 64); font-family: ±¼¸², Gulim; line-height: 19px;">&nbsp; &nbsp; &nbsp; {&nbsp;</div><div style="color: rgb(64, 64, 64); font-family: ±¼¸², Gulim; line-height: 19px;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;sum=pa-&gt;coef * pb-&gt;coef;&nbsp;</div><div style="color: rgb(64, 64, 64); font-family: ±¼¸², Gulim; line-height: 19px;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;exposum=pa-&gt;expo + pb-&gt;expo;</div><div style="color: rgb(64, 64, 64); font-family: ±¼¸², Gulim; line-height: 19px;"><span class="Apple-tab-span" style="white-space: pre;"></span>addlastnode(c,sum,exposum);&nbsp;</div><div style="color: rgb(64, 64, 64); font-family: ±¼¸², Gulim; line-height: 19px;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;pb=pb-&gt;link;&nbsp;</div><div style="color: rgb(64, 64, 64); font-family: ±¼¸², Gulim; line-height: 19px;">&nbsp; &nbsp; &nbsp; }&nbsp;</div><div style="color: rgb(64, 64, 64); font-family: ±¼¸², Gulim; line-height: 19px;">&nbsp; &nbsp; &nbsp; pa=pa-&gt;link;&nbsp;</div><div style="color: rgb(64, 64, 64); font-family: ±¼¸², Gulim; line-height: 19px;">&nbsp; &nbsp; &nbsp; pb=b-&gt;head;&nbsp;</div><div style="color: rgb(64, 64, 64); font-family: ±¼¸², Gulim; line-height: 19px;">&nbsp; &nbsp;}&nbsp;</div><div style="color: rgb(64, 64, 64); font-family: ±¼¸², Gulim; line-height: 19px;">}&nbsp;</div><div style="color: rgb(64, 64, 64); font-family: ±¼¸², Gulim; line-height: 19px;">void printpoly(Listhead* L)&nbsp;</div><div style="color: rgb(64, 64, 64); font-family: ±¼¸², Gulim; line-height: 19px;">{&nbsp;</div><div style="color: rgb(64, 64, 64); font-family: ±¼¸², Gulim; line-height: 19px;">&nbsp; &nbsp;Listnode* p=L-&gt;head;&nbsp;</div><div style="color: rgb(64, 64, 64); font-family: ±¼¸², Gulim; line-height: 19px;">&nbsp; &nbsp;for(;p;p=p-&gt;link)&nbsp;</div><div style="color: rgb(64, 64, 64); font-family: ±¼¸², Gulim; line-height: 19px;">&nbsp; &nbsp;{&nbsp;</div><div style="color: rgb(64, 64, 64); font-family: ±¼¸², Gulim; line-height: 19px;">&nbsp; &nbsp; &nbsp; printf("%3.0fx^%d",p-&gt;coef,p-&gt;expo);&nbsp;</div><div style="color: rgb(64, 64, 64); font-family: ±¼¸², Gulim; line-height: 19px;">&nbsp; &nbsp;}&nbsp;</div><div style="color: rgb(64, 64, 64); font-family: ±¼¸², Gulim; line-height: 19px;">}&nbsp;</div><div style="color: rgb(64, 64, 64); font-family: ±¼¸², Gulim; line-height: 19px;">void main()&nbsp;</div><div style="color: rgb(64, 64, 64); font-family: ±¼¸², Gulim; line-height: 19px;">{&nbsp;</div><div style="color: rgb(64, 64, 64); font-family: ±¼¸², Gulim; line-height: 19px;">&nbsp; &nbsp;Listhead *a,*b,*c;&nbsp;</div><div style="color: rgb(64, 64, 64); font-family: ±¼¸², Gulim; line-height: 19px;"><br></div><div style="color: rgb(64, 64, 64); font-family: ±¼¸², Gulim; line-height: 19px;">&nbsp; &nbsp;a=createlinkedlist();&nbsp;</div><div style="color: rgb(64, 64, 64); font-family: ±¼¸², Gulim; line-height: 19px;">&nbsp; &nbsp;b=createlinkedlist();&nbsp;</div><div style="color: rgb(64, 64, 64); font-family: ±¼¸², Gulim; line-height: 19px;">&nbsp; &nbsp;c=createlinkedlist();&nbsp;</div><div style="color: rgb(64, 64, 64); font-family: ±¼¸², Gulim; line-height: 19px;"><span class="Apple-tab-span" style="white-space: pre;"></span></div><div style="color: rgb(64, 64, 64); font-family: ±¼¸², Gulim; line-height: 19px;">&nbsp; &nbsp;addlastnode(a,3,1);&nbsp;</div><div style="color: rgb(64, 64, 64); font-family: ±¼¸², Gulim; line-height: 19px;">&nbsp; &nbsp;addlastnode(a,5,0);&nbsp;</div><div style="color: rgb(64, 64, 64); font-family: ±¼¸², Gulim; line-height: 19px;"><br></div><div style="color: rgb(64, 64, 64); font-family: ±¼¸², Gulim; line-height: 19px;">&nbsp; &nbsp;printf("\n a(x)=");&nbsp;</div><div style="color: rgb(64, 64, 64); font-family: ±¼¸², Gulim; line-height: 19px;">&nbsp; &nbsp;printpoly(a);&nbsp;</div><div style="color: rgb(64, 64, 64); font-family: ±¼¸², Gulim; line-height: 19px;"><br></div><div style="color: rgb(64, 64, 64); font-family: ±¼¸², Gulim; line-height: 19px;">&nbsp; &nbsp;addlastnode(b,2,1);&nbsp;</div><div style="color: rgb(64, 64, 64); font-family: ±¼¸², Gulim; line-height: 19px;">&nbsp; &nbsp;addlastnode(b,1,0);&nbsp;</div><div style="color: rgb(64, 64, 64); font-family: ±¼¸², Gulim; line-height: 19px;"><br></div><div style="color: rgb(64, 64, 64); font-family: ±¼¸², Gulim; line-height: 19px;">&nbsp; &nbsp;printf("\n b(x)=");&nbsp;</div><div style="color: rgb(64, 64, 64); font-family: ±¼¸², Gulim; line-height: 19px;">&nbsp; &nbsp;printpoly(b);&nbsp;</div><div style="color: rgb(64, 64, 64); font-family: ±¼¸², Gulim; line-height: 19px;"><br></div><div style="color: rgb(64, 64, 64); font-family: ±¼¸², Gulim; line-height: 19px;">&nbsp; &nbsp;mulpoly(a,b,c);&nbsp;</div><div style="color: rgb(64, 64, 64); font-family: ±¼¸², Gulim; line-height: 19px;"><br></div><div style="color: rgb(64, 64, 64); font-family: ±¼¸², Gulim; line-height: 19px;">&nbsp; &nbsp;printf( "\n c(x)=");&nbsp;</div><div style="color: rgb(64, 64, 64); font-family: ±¼¸², Gulim; line-height: 19px;">&nbsp; &nbsp;printpoly(c);&nbsp;</div><div style="color: rgb(64, 64, 64); font-family: ±¼¸², Gulim; line-height: 19px;">}&nbsp;</div><div style="color: rgb(64, 64, 64); font-family: ±¼¸², Gulim; line-height: 19px;">[/code]</div><div style="color: rgb(64, 64, 64); font-family: ±¼¸², Gulim; line-height: 19px;"><br></div><div style="color: rgb(64, 64, 64); font-family: ±¼¸², Gulim; line-height: 19px;">½ÇÇà½ÃÅ°¸é&nbsp;<span style="line-height: 1.5;">c(x)°¡&nbsp;</span><span style="line-height: 1.5;">6x^2 3x^1 10x^1 5x^0ÀÌ ³ª¿É´Ï´Ù.</span></div><div style="color: rgb(64, 64, 64); font-family: ±¼¸², Gulim; line-height: 19px;">¿Ã¹Ù¸£°Ô ³ª¿Ã·Á¸é&nbsp;<span style="line-height: 1.5;">3x^1 10x^1ÀÌ ¾Æ´Ñ 13x^1ÀÌ ³ª¿Í¾ßµÇ´Âµ¥...</span></div><div style="color: rgb(64, 64, 64); font-family: ±¼¸², Gulim; line-height: 19px;"><span style="line-height: 1.5;">¾î¶»°Ô ÇØ¾ßÇÏ³ª¿ä? µµ¿ÍÁÖ¼¼¿ä</span></div></p>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    <table width=100% border='0' cellpadding='0' cellspacing='0'>
                    <tr>
                    <td align='left' valign='top'>
                                <tr>
                                    <td nowrap style="position:relative" align='left'>
<a href="http://k.daum.net/qna/qna_index.html" class="bG12">Q&A Áö½Ä</a> &gt;
<a href="http://k.daum.net/qna/list.html?category_id=QC" class="bG12">ÄÄÇ»ÅÍ,ÀÎÅÍ³Ý</a> &gt;
<a href="http://k.daum.net/qna/list.html?category_id=QCA" class="bG12">ÇÁ·Î±×·¡¹Ö</a> &gt;
                <a href="http://k.daum.net/qna/list.html?category_id=QCA001" class="bG12"><b>C,C++</b></a>
                                    </td>
                                    <td nowrap style="position:relative" align='right'>
                                                <a href="http://k.daum.net/qna/answer.html?qid=56ra1" onFocus="this.blur();"><img src="http://i2.daumcdn.net/imgsrc.search/knowledge4/2009/new/btn_rss_rely.gif" width="87" height="33" alt="´äº¯ÇÏ±â" border='0'/></a>
                                    </td>
                                </tr>
                        </table>
                    ]]>
                </description>
                <author>ºñ°ø°³´Ô</author>
                <pubDate>19 May 2013 00:17:34 GMT</pubDate>
            </item>
            <item>
                <title>2Â÷¿ø¹è¿­¿¡¼­</title>
                <link>http://k.daum.net/qna/view.html?qid=56orQ</link>
                <category>ÄÄÇ»ÅÍ,ÀÎÅÍ³Ý > ÇÁ·Î±×·¡¹Ö > C,C++</category>
                <description>
                    <![CDATA[
                        <table width=100% cellspacing='1' cellpadding='5' border='0' bgcolor='#ffffff' style='margin-right:10px;'>
                            <tbody>
                                <tr>
                                    <td width=100% bgcolor='#ffffff'>
                                    2Â÷¿ø¹è¿­¿¡¼­ arr[2][4]ÀÌ·±½ÄÀ¸·Î ¼¼·Î°¡·Î¸¦ Á¤ÇØ³õ°íÇÏÀÝ¾Æ¿ä<BR>&nbsp;<BR>±Ùµ¥ ³ôÀÌ¸¦ ÀÔ·ÂµÈ¼ö¿¡ µû¶ó¼­ ¹Ù²Ù·Á¸é<BR>&nbsp;<BR>defineÀ¸·Î ¹üÀ§Á¤ÇØ³õ°í<BR>&nbsp;<BR>for¹®¾È¿¡¼­ <BR>&nbsp;<BR>for(i=0;i&lt;n;i++)<BR>{<BR>for(j=0;j&lt;3;j++)<BR>{<BR>scanf("%d",&amp;arr[i][j]);<BR>}<BR>}<BR>&nbsp;<BR>ÀÌ·±½ÄÀ¸·ÎÇÏ¸é ¹Ù²Ü¼öÀÖ´Â°Å¿¡¿ä?<BR>&nbsp;<BR>±Ùµ¥ defineÀ¸·Î ¹üÀ§Á¤ÇÏ¸é ¹Ù²Ü¼ö¾ø´Â°ÅÀÝ¾Æ¿ä..<BR>&#51053;???<BR>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    <table width=100% border='0' cellpadding='0' cellspacing='0'>
                    <tr>
                    <td align='left' valign='top'>
                                <tr>
                                    <td nowrap style="position:relative" align='left'>
<a href="http://k.daum.net/qna/qna_index.html" class="bG12">Q&A Áö½Ä</a> &gt;
<a href="http://k.daum.net/qna/list.html?category_id=QC" class="bG12">ÄÄÇ»ÅÍ,ÀÎÅÍ³Ý</a> &gt;
<a href="http://k.daum.net/qna/list.html?category_id=QCA" class="bG12">ÇÁ·Î±×·¡¹Ö</a> &gt;
                <a href="http://k.daum.net/qna/list.html?category_id=QCA001" class="bG12"><b>C,C++</b></a>
                                    </td>
                                    <td nowrap style="position:relative" align='right'>
                                                <a href="http://k.daum.net/qna/answer.html?qid=56orQ" onFocus="this.blur();"><img src="http://i2.daumcdn.net/imgsrc.search/knowledge4/2009/new/btn_rss_rely.gif" width="87" height="33" alt="´äº¯ÇÏ±â" border='0'/></a>
                                    </td>
                                </tr>
                        </table>
                    ]]>
                </description>
                    <author>½º¸¶ÀÏ´Ô</author>
                <pubDate>17 May 2013 13:55:37 GMT</pubDate>
            </item>
            <item>
                <title>c¾ð¾îÁ» µµ¿ÍÁÖ¼¼¿ä</title>
                <link>http://k.daum.net/qna/view.html?qid=56hV5</link>
                <category>ÄÄÇ»ÅÍ,ÀÎÅÍ³Ý > ÇÁ·Î±×·¡¹Ö > C,C++</category>
                <description>
                    <![CDATA[
                        <table width=100% cellspacing='1' cellpadding='5' border='0' bgcolor='#ffffff' style='margin-right:10px;'>
                            <tbody>
                                <tr>
                                    <td width=100% bgcolor='#ffffff'>
                                    * ¼ºÀûÃ³¸® ÇÁ·Î±×·¥<BR>
&nbsp;<BR>
<BR>
<BR>
<BR>
- ÀÔ·Â : ±¹, ¿µ, ¼ö<BR>
- Ãâ·Â : ÃÑÁ¡, Æò±Õ, ÆòÁ¡<BR>
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;1)ÃÑÁ¡ : Á¡¼öÇÕ<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 2)Æò±Õ : Á¡¼ö Æò±Õ<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 3)Æò±ÕÀÇ ÆòÁ¡ : 'A' ~ 'F'<BR>
- Á¶°Ç : ÆòÁ¡À» ±¸ÇÒ¶§ <FONT color=#ff0000>if~else</FONT> »ç¿ë<BR>
<BR>
90Á¡ ÀÌ»óÀÌ¸é A ÇÐÁ¡<BR>
80Á¡ ÀÌ»óÀÌ¸é B ÇÐÁ¡<BR>
70Á¡ ÀÌ»óÀÌ¸é C ÇÐÁ¡<BR>
60Á¡ ÀÌ»óÀÌ¸é D ÇÐÁ¡<BR>
³ª¸ÓÁö FÇÐÁ¡<BR>
&nbsp;<BR>
&nbsp;<BR>
<BR>
<BR>
<BR>
<BR>
<BR>
<BR>
<BR>
<BR>
<BR>
<BR>
* ¼ºÀûÃ³¸® ÇÁ·Î±×·¥<BR>
&nbsp;<BR>
<BR>
<BR>
<BR>
- ÀÔ·Â : ±¹, ¿µ, ¼ö<BR>
- Ãâ·Â : ÃÑÁ¡, Æò±Õ, ÆòÁ¡<BR>
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 1)ÃÑÁ¡ : Á¡¼öÇÕ<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;2)Æò±Õ : Á¡¼ö Æò±Õ<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 3)Æò±ÕÀÇ ÆòÁ¡ : 'A' ~ 'F'<BR>
- Á¶°Ç : ÆòÁ¡À» ±¸ÇÒ¶§ <FONT color=#ff0000>switch</FONT> »ç¿ë<BR>
<BR>
<BR>
90Á¡ ÀÌ»óÀÌ¸é A ÇÐÁ¡<BR>
80Á¡ ÀÌ»óÀÌ¸é B ÇÐÁ¡<BR>
70Á¡ ÀÌ»óÀÌ¸é C ÇÐÁ¡<BR>
60Á¡ ÀÌ»óÀÌ¸é D ÇÐÁ¡<BR>
³ª¸ÓÁö FÇÐÁ¡<BR>
&nbsp;<BR>
&nbsp;<BR>
<BR>
<BR>
¾î¶»°Ô Â¥¾ßÇÏ³ª¿ä<BR>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    <table width=100% border='0' cellpadding='0' cellspacing='0'>
                    <tr>
                    <td align='left' valign='top'>
                                <tr>
                                    <td nowrap style="position:relative" align='left'>
<a href="http://k.daum.net/qna/qna_index.html" class="bG12">Q&A Áö½Ä</a> &gt;
<a href="http://k.daum.net/qna/list.html?category_id=QC" class="bG12">ÄÄÇ»ÅÍ,ÀÎÅÍ³Ý</a> &gt;
<a href="http://k.daum.net/qna/list.html?category_id=QCA" class="bG12">ÇÁ·Î±×·¡¹Ö</a> &gt;
                <a href="http://k.daum.net/qna/list.html?category_id=QCA001" class="bG12"><b>C,C++</b></a>
                                    </td>
                                    <td nowrap style="position:relative" align='right'>
                                                <a href="http://k.daum.net/qna/answer.html?qid=56hV5" onFocus="this.blur();"><img src="http://i2.daumcdn.net/imgsrc.search/knowledge4/2009/new/btn_rss_rely.gif" width="87" height="33" alt="´äº¯ÇÏ±â" border='0'/></a>
                                    </td>
                                </tr>
                        </table>
                    ]]>
                </description>
                    <author>¼Ò¿ø´Ô</author>
                <pubDate>15 May 2013 04:35:31 GMT</pubDate>
            </item>
            <item>
                <title>define¼±¾ðÇÒ¶§</title>
                <link>http://k.daum.net/qna/view.html?qid=56apw</link>
                <category>ÄÄÇ»ÅÍ,ÀÎÅÍ³Ý > ÇÁ·Î±×·¡¹Ö > C,C++</category>
                <description>
                    <![CDATA[
                        <table width=100% cellspacing='1' cellpadding='5' border='0' bgcolor='#ffffff' style='margin-right:10px;'>
                            <tbody>
                                <tr>
                                    <td width=100% bgcolor='#ffffff'>
                                    define¼±¾ðÇÒ¶§´Â<BR>&nbsp;<BR>#iinclude &lt;stdio.h&gt;ÀÌ°Å¸¦ ¾È¾´´Â°Å¿¡¿µ?,?<BR>&nbsp;<BR>±×¸®°í Áö³­½Ã°£ 2Â÷¿ø ¹è¿­ºÎºÐ °³³ä º¸´Âµ¥<BR>&nbsp;<BR>ÄÚµå¿¡¼­<BR>&nbsp;<BR>int main ¼±¾ðÀü¿¡&nbsp; int n,m,jimmy[HEIGHT][WIDTH] ¸¦ ÇÏ´Â°É·Î ³ª¿ÍÀÖ´Âµ¥<BR>»ó°ü¾ø´Â°Å¿¡¿ë?<BR>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    <table width=100% border='0' cellpadding='0' cellspacing='0'>
                    <tr>
                    <td align='left' valign='top'>
                                <tr>
                                    <td nowrap style="position:relative" align='left'>
<a href="http://k.daum.net/qna/qna_index.html" class="bG12">Q&A Áö½Ä</a> &gt;
<a href="http://k.daum.net/qna/list.html?category_id=QC" class="bG12">ÄÄÇ»ÅÍ,ÀÎÅÍ³Ý</a> &gt;
<a href="http://k.daum.net/qna/list.html?category_id=QCA" class="bG12">ÇÁ·Î±×·¡¹Ö</a> &gt;
                <a href="http://k.daum.net/qna/list.html?category_id=QCA001" class="bG12"><b>C,C++</b></a>
                                    </td>
                                    <td nowrap style="position:relative" align='right'>
                                                <a href="http://k.daum.net/qna/answer.html?qid=56apw" onFocus="this.blur();"><img src="http://i2.daumcdn.net/imgsrc.search/knowledge4/2009/new/btn_rss_rely.gif" width="87" height="33" alt="´äº¯ÇÏ±â" border='0'/></a>
                                    </td>
                                </tr>
                        </table>
                    ]]>
                </description>
                    <author>½º¸¶ÀÏ´Ô</author>
                <pubDate>12 May 2013 13:56:05 GMT</pubDate>
            </item>
            <item>
                <title>c¾ð¾î ÇÁ·Î±×·¡¹ÖÁ» µµ¿ÍÁÖ¼¼¿ä..</title>
                <link>http://k.daum.net/qna/view.html?qid=56Xnh</link>
                <category>ÄÄÇ»ÅÍ,ÀÎÅÍ³Ý > ÇÁ·Î±×·¡¹Ö > C,C++</category>
                <description>
                    <![CDATA[
                        <table width=100% cellspacing='1' cellpadding='5' border='0' bgcolor='#ffffff' style='margin-right:10px;'>
                            <tbody>
                                <tr>
                                    <td width=100% bgcolor='#ffffff'>
                                    µ¡¼À , »¬»ù , °ö¼À ,³ª´°¼ÀÀ» Áö¿øÇÏ´Â °è»ê±â ÇÁ·Î±×·¥À» ÀÛ¼ºÇÏ´Â ÇÁ·Î±×·¥À» Â¥´Â°Çµ¥¿ä..(c¾ð¾î)<BR>
&nbsp;<BR>
Á¤ÀûÁö¿ªº¯¼ö¸¦ »ç¿ëÇÏ¿© ÇÁ·Î±×·¥À» ÀÛ¼ºÇÏ¶ó.<BR>
Àü¿ªº¯¼ö¸¦ »ç¿ëÇÏ¿© ÇÁ·Î±×·¥À» ÀÛ¼ºÇÏ¶ó.<BR>
&nbsp;<BR>
ÀÌ µÎÁ¶°ÇÀ» ¸¸Á·ÇÏ¿©¾ß ÇØ¾ßµÇ´Âµ¥&nbsp; Á¦°¡ ¾î´ÀÁ¤µµ Â­´Âµ¥&nbsp; ¿¬»êÈ½¼ö´Â ¶ß´Âµ¥ <BR>
¿¬»ê °á°ú°¡ ¾È¶ß³×¿ä.. Àß¸øµÈ ºÎºÐÁ» ¾Ë·ÁÁÖ¼¼¿ä<BR>
&nbsp;<BR>
#include&lt;stdio.h&gt;<BR>
double sum(double x,double y);<BR>double multiply(double x,double y);<BR>double divide(double x,double y);<BR>double minus(double x,double y);<BR>int x,y;<BR>
int main(void)<BR>{<BR>&nbsp;char c;<BR>
&nbsp;while(1)<BR>&nbsp;{<BR>&nbsp;&nbsp;printf("¿¬»êÀ» ÀÔ·ÂÇÏ½Ã¿À : ");<BR>&nbsp;&nbsp;scanf("%f",&amp;x);<BR>&nbsp;&nbsp;&nbsp;&nbsp; scanf("%c",&amp;c);<BR>&nbsp;&nbsp;scanf("%f",&amp;y);<BR>
&nbsp;&nbsp;switch(c)<BR>&nbsp;&nbsp;{<BR>&nbsp;&nbsp;case'+' : sum(x,y);<BR>&nbsp;&nbsp;&nbsp;break;<BR>&nbsp;&nbsp;case'-' : minus(x,y);<BR>&nbsp;&nbsp;&nbsp;break;<BR>&nbsp;&nbsp;case'*' : multiply(x,y);<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; break;<BR>&nbsp;&nbsp;case'/' : divide(x,y);<BR>&nbsp;&nbsp;&nbsp;break;<BR>&nbsp;&nbsp;default :<BR>&nbsp;&nbsp;&nbsp;return 0;<BR>&nbsp;&nbsp;}<BR>
&nbsp;&nbsp;printf("\n");<BR>&nbsp;}<BR>
&nbsp;return 0;<BR>}<BR>
&nbsp;<BR>
&nbsp;<BR>
&nbsp;<BR>
double sum(double x,double y)<BR>{<BR>&nbsp;static int count;<BR>&nbsp;count++;<BR>&nbsp;printf("µ¡¼ÀÀº ÃÑ %d¹ø ½ÇÇàµÇ¾ú½À´Ï´Ù.\n",count);<BR>&nbsp;return printf("¿¬»ê °á°ú : %d ",x+y);<BR>}<BR>
<BR>double multiply(double x,double y)<BR>{<BR>&nbsp;static int count;<BR>&nbsp;count++;<BR>&nbsp;printf("°ö¼ÀÀº ÃÑ %d¹ø ½ÇÇàµÇ¾ú½À´Ï´Ù.\n",count);<BR>&nbsp;return printf("¿¬»ê °á°ú : %d ",x*y);<BR>}<BR>
double divide(double x,double y)<BR>{<BR>&nbsp;static int count;<BR>&nbsp;count++;<BR>&nbsp;printf("³ª´°¼ÀÀº ÃÑ %d¹ø ½ÇÇàµÇ¾ú½À´Ï´Ù.\n",count);<BR>&nbsp;return printf("¿¬»ê °á°ú : %d ",x/y);<BR>}<BR>
double minus(double x,double y)<BR>{<BR>&nbsp;static int count;<BR>&nbsp;count++;<BR>&nbsp;printf("&#48828;¼ÀÀº ÃÑ %d¹ø ½ÇÇàµÇ¾ú½À´Ï´Ù.\n",count);<BR>&nbsp;return printf("¿¬»ê °á°ú : %d ",x-y);<BR>}<BR>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    <table width=100% border='0' cellpadding='0' cellspacing='0'>
                    <tr>
                    <td align='left' valign='top'>
                                <tr>
                                    <td nowrap style="position:relative" align='left'>
<a href="http://k.daum.net/qna/qna_index.html" class="bG12">Q&A Áö½Ä</a> &gt;
<a href="http://k.daum.net/qna/list.html?category_id=QC" class="bG12">ÄÄÇ»ÅÍ,ÀÎÅÍ³Ý</a> &gt;
<a href="http://k.daum.net/qna/list.html?category_id=QCA" class="bG12">ÇÁ·Î±×·¡¹Ö</a> &gt;
                <a href="http://k.daum.net/qna/list.html?category_id=QCA001" class="bG12"><b>C,C++</b></a>
                                    </td>
                                    <td nowrap style="position:relative" align='right'>
                                                <a href="http://k.daum.net/qna/answer.html?qid=56Xnh" onFocus="this.blur();"><img src="http://i2.daumcdn.net/imgsrc.search/knowledge4/2009/new/btn_rss_rely.gif" width="87" height="33" alt="´äº¯ÇÏ±â" border='0'/></a>
                                    </td>
                                </tr>
                        </table>
                    ]]>
                </description>
                    <author>1412park´Ô</author>
                <pubDate>11 May 2013 10:44:16 GMT</pubDate>
            </item>
            <item>
                <title>1Â÷¿ø¹è¿­ °úÁ¦</title>
                <link>http://k.daum.net/qna/view.html?qid=56XFk</link>
                <category>ÄÄÇ»ÅÍ,ÀÎÅÍ³Ý > ÇÁ·Î±×·¡¹Ö > C,C++</category>
                <description>
                    <![CDATA[
                        <table width=100% cellspacing='1' cellpadding='5' border='0' bgcolor='#ffffff' style='margin-right:10px;'>
                            <tbody>
                                <tr>
                                    <td width=100% bgcolor='#ffffff'>
                                    #include &lt;stdio.h&gt;<BR><BR>int main ()<BR>{<BR>&nbsp;int n,arr[100],i,count=0;<BR>&nbsp;scanf("%d",&amp;n);<BR>&nbsp;for(i=0;i&lt;n;i++)<BR>&nbsp;&nbsp;scanf("%d",&amp;arr[i]);<BR>&nbsp;arr[0]=0;<BR>&nbsp;for(i=1;i&lt;=n;i++)<BR>&nbsp;{<BR>&nbsp;&nbsp;if(n%i==0)<BR>&nbsp;&nbsp;&nbsp;{<BR>&nbsp;&nbsp;&nbsp;&nbsp;arr[count]=i;<BR>&nbsp;&nbsp;&nbsp;&nbsp;count++;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<BR>&nbsp;}<BR>&nbsp;for(i=0;i&lt;n;i++)<BR>&nbsp;{<BR>&nbsp;&nbsp;if(!(arr[i]%2==0))<BR>&nbsp;&nbsp;&nbsp;printf("%d",arr[i]);<BR>&nbsp;}<BR>&nbsp;return 0;<BR>}<BR><BR>&nbsp;<BR>&nbsp;<BR>¹è¿­¿¡ ¼öÀÔ·ÂÇÏ´Â°Å Àú·¸°Ô ÇÏ¸éµÇ´Â°Å¿¡¿ä?<BR>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    <table width=100% border='0' cellpadding='0' cellspacing='0'>
                    <tr>
                    <td align='left' valign='top'>
                                <tr>
                                    <td nowrap style="position:relative" align='left'>
<a href="http://k.daum.net/qna/qna_index.html" class="bG12">Q&A Áö½Ä</a> &gt;
<a href="http://k.daum.net/qna/list.html?category_id=QC" class="bG12">ÄÄÇ»ÅÍ,ÀÎÅÍ³Ý</a> &gt;
<a href="http://k.daum.net/qna/list.html?category_id=QCA" class="bG12">ÇÁ·Î±×·¡¹Ö</a> &gt;
                <a href="http://k.daum.net/qna/list.html?category_id=QCA001" class="bG12"><b>C,C++</b></a>
                                    </td>
                                    <td nowrap style="position:relative" align='right'>
                                                <a href="http://k.daum.net/qna/answer.html?qid=56XFk" onFocus="this.blur();"><img src="http://i2.daumcdn.net/imgsrc.search/knowledge4/2009/new/btn_rss_rely.gif" width="87" height="33" alt="´äº¯ÇÏ±â" border='0'/></a>
                                    </td>
                                </tr>
                        </table>
                    ]]>
                </description>
                    <author>½º¸¶ÀÏ´Ô</author>
                <pubDate>11 May 2013 06:59:38 GMT</pubDate>
            </item>
            <item>
                <title>Á¶È¸(FORM1) ¿¡¼­ µî·Ï(FORM2) È­¸éÀ¸·Î  ºÐ±âÇÒ¶§ ¿À·ù ÀÔ´Ï´Ù</title>
                <link>http://k.daum.net/qna/view.html?qid=56Tmh</link>
                <category>ÄÄÇ»ÅÍ,ÀÎÅÍ³Ý > ÇÁ·Î±×·¡¹Ö > C,C++</category>
                <description>
                    <![CDATA[
                        <table width=100% cellspacing='1' cellpadding='5' border='0' bgcolor='#ffffff' style='margin-right:10px;'>
                            <tbody>
                                <tr>
                                    <td width=100% bgcolor='#ffffff'>
                                    DATAGRID Á¶È¸ È­¸é¿¡¼­ RECORD¸¦ ¼±ÅÃÇÏ¸é µî·Ï È­¸éÀ¸·Î ÆÄ¶ó¸ÞÅÍ¸¦ °¡Áö°í°¡¼­ µ¥ÀÌÅ¸¸¦ Á¶È¸ÇÏ°í ÀÚ ÇÕ´Ï´Ù <BR>±×·±µ¥ µ¥ÀÌÅ¸ Á¶È¸¸¦ Ç×»ó ·¹ÄÚµå Ã¹¹øÂ° µ¥ÀÌÅ¸¸¸ Á¶È¸ ÇÕ´Ï´Ù <BR>¼±¹è´ÔµéÀÌ º¸½Ã°í ERROR¸¦ Ã£Â÷¾Æ ÁÖ¼¼¿ä <BR>&nbsp;<BR>ÇÁ·Î±×·¥Àº ¸¶¹ý»ç¸¦ ÀÌ¿ëÇØ ÀÛ¼ºÇß½À´Ï´Ù &nbsp;<BR>&nbsp;<BR>Á¶È¸ ÇÁ·Î±×·¥ ºÐ±â ºÎºÐ ÀÔ´Ï´Ù <BR><FONT size=2 face=Consolas><FONT size=2 face=Consolas></FONT></FONT><FONT color=#0000ff size=2 face=Consolas><FONT color=#0000ff size=2 face=Consolas><FONT color=#0000ff size=2 face=Consolas>Private</FONT></FONT></FONT><FONT size=2 face=Consolas><FONT size=2 face=Consolas> </FONT></FONT><FONT color=#0000ff size=2 face=Consolas><FONT color=#0000ff size=2 face=Consolas><FONT color=#0000ff size=2 face=Consolas>Sub</FONT></FONT></FONT><FONT size=2 face=Consolas><FONT size=2 face=Consolas> CustomerDataGridView_DoubleClick() </FONT></FONT><FONT color=#0000ff size=2 face=Consolas><FONT color=#0000ff size=2 face=Consolas><FONT color=#0000ff size=2 face=Consolas>Handles</FONT></FONT></FONT><FONT size=2 face=Consolas><FONT size=2 face=Consolas> CustomerDataGridView.DoubleClick<BR></FONT></FONT><FONT color=#008000 size=2 face=Consolas><FONT color=#008000 size=2 face=Consolas><FONT color=#008000 size=2 face=Consolas>'Private Sub CustomerDataGridView_CellContentClick(ByVal sender As System.Object, ByVal e As System.Windows.Forms.DataGridViewCellEventArgs) Handles CustomerDataGridView.CellContentClick<BR></FONT></FONT></FONT><FONT size=2 face=Consolas><FONT size=2 face=Consolas></FONT></FONT><FONT color=#0000ff size=2 face=Consolas><FONT color=#0000ff size=2 face=Consolas><FONT color=#0000ff size=2 face=Consolas>Dim</FONT></FONT></FONT><FONT size=2 face=Consolas><FONT size=2 face=Consolas> SelectedRowView </FONT></FONT><FONT color=#0000ff size=2 face=Consolas><FONT color=#0000ff size=2 face=Consolas><FONT color=#0000ff size=2 face=Consolas>As</FONT></FONT></FONT><FONT size=2 face=Consolas><FONT size=2 face=Consolas> Data.</FONT></FONT><FONT color=#2b91af size=2 face=Consolas><FONT color=#2b91af size=2 face=Consolas><FONT color=#2b91af size=2 face=Consolas>DataRowView<BR></FONT></FONT></FONT><FONT size=2 face=Consolas><FONT size=2 face=Consolas></FONT></FONT><FONT color=#0000ff size=2 face=Consolas><FONT color=#0000ff size=2 face=Consolas><FONT color=#0000ff size=2 face=Consolas>Dim</FONT></FONT></FONT><FONT size=2 face=Consolas><FONT size=2 face=Consolas> SelectedRow </FONT></FONT><FONT color=#0000ff size=2 face=Consolas><FONT color=#0000ff size=2 face=Consolas><FONT color=#0000ff size=2 face=Consolas>As</FONT></FONT></FONT><FONT size=2 face=Consolas><FONT size=2 face=Consolas> </FONT></FONT><FONT color=#2b91af size=2 face=Consolas><FONT color=#2b91af size=2 face=Consolas><FONT color=#2b91af size=2 face=Consolas>customerorders1DataSet</FONT></FONT></FONT><FONT size=2 face=Consolas><FONT size=2 face=Consolas>.</FONT></FONT><FONT color=#2b91af size=2 face=Consolas><FONT color=#2b91af size=2 face=Consolas><FONT color=#2b91af size=2 face=Consolas>customerRow<BR></FONT></FONT></FONT><FONT size=2 face=Consolas><FONT size=2 face=Consolas>SelectedRowView = </FONT></FONT><FONT color=#0000ff size=2 face=Consolas><FONT color=#0000ff size=2 face=Consolas><FONT color=#0000ff size=2 face=Consolas>CType</FONT></FONT></FONT><FONT size=2 face=Consolas><FONT size=2 face=Consolas>(CustomerBindingSource.Current, System.Data.</FONT></FONT><FONT color=#2b91af size=2 face=Consolas><FONT color=#2b91af size=2 face=Consolas><FONT color=#2b91af size=2 face=Consolas>DataRowView</FONT></FONT></FONT><FONT size=2 face=Consolas><FONT size=2 face=Consolas>)<BR>SelectedRow = </FONT></FONT><FONT color=#0000ff size=2 face=Consolas><FONT color=#0000ff size=2 face=Consolas><FONT color=#0000ff size=2 face=Consolas>CType</FONT></FONT></FONT><FONT size=2 face=Consolas><FONT size=2 face=Consolas>(SelectedRowView.Row, </FONT></FONT><FONT color=#2b91af size=2 face=Consolas><FONT color=#2b91af size=2 face=Consolas><FONT color=#2b91af size=2 face=Consolas>customerorders1DataSet</FONT></FONT></FONT><FONT size=2 face=Consolas><FONT size=2 face=Consolas>.</FONT></FONT><FONT color=#2b91af size=2 face=Consolas><FONT color=#2b91af size=2 face=Consolas><FONT color=#2b91af size=2 face=Consolas>customerRow</FONT></FONT></FONT><FONT size=2 face=Consolas><FONT size=2 face=Consolas>)<BR></FONT></FONT><FONT color=#0000ff size=2 face=Consolas><FONT color=#0000ff size=2 face=Consolas><FONT color=#0000ff size=2 face=Consolas>Dim</FONT></FONT></FONT><FONT size=2 face=Consolas><FONT size=2 face=Consolas> OrdersForm </FONT></FONT><FONT color=#0000ff size=2 face=Consolas><FONT color=#0000ff size=2 face=Consolas><FONT color=#0000ff size=2 face=Consolas>As</FONT></FONT></FONT><FONT size=2 face=Consolas><FONT size=2 face=Consolas> </FONT></FONT><FONT color=#0000ff size=2 face=Consolas><FONT color=#0000ff size=2 face=Consolas><FONT color=#0000ff size=2 face=Consolas>New</FONT></FONT></FONT><FONT size=2 face=Consolas><FONT size=2 face=Consolas> </FONT></FONT><FONT color=#2b91af size=2 face=Consolas><FONT color=#2b91af size=2 face=Consolas><FONT color=#2b91af size=2 face=Consolas>Form7<BR></FONT></FONT></FONT><FONT size=2 face=Consolas><FONT size=2 face=Consolas>OrdersForm.LoadOrders1(SelectedRow.customerid)<BR>OrdersForm.Show()<BR></FONT></FONT><FONT color=#0000ff size=2 face=Consolas><FONT color=#0000ff size=2 face=Consolas><FONT color=#0000ff size=2 face=Consolas>End</FONT></FONT></FONT><FONT size=2 face=Consolas><FONT size=2 face=Consolas> </FONT></FONT><FONT color=#0000ff size=2 face=Consolas><FONT color=#0000ff size=2 face=Consolas><FONT color=#0000ff size=2 face=Consolas>Sub</FONT></FONT></FONT><BR><FONT color=#0000ff size=2 face=Consolas><FONT color=#0000ff size=2 face=Consolas><FONT color=#0000ff size=2 face=Consolas></FONT></FONT></FONT>&nbsp;<BR><FONT color=#0000ff size=2 face=Consolas><FONT color=#0000ff size=2 face=Consolas><FONT color=#0000ff size=2 face=Consolas>ºÐ±âÇÏ¿© µî·Ï ÇÁ·Î±×·¥ ºÎºÐÀÔ´Ï´Ù </FONT></FONT></FONT><BR><FONT color=#0000ff size=2 face=Consolas><FONT color=#0000ff size=2 face=Consolas><FONT color=#0000ff size=2 face=Consolas><FONT size=2 face=Consolas><FONT size=2 face=Consolas></FONT></FONT><FONT color=#0000ff size=2 face=Consolas><FONT color=#0000ff size=2 face=Consolas><FONT color=#0000ff size=2 face=Consolas>Friend</FONT></FONT></FONT><FONT size=2 face=Consolas><FONT size=2 face=Consolas> </FONT></FONT><FONT color=#0000ff size=2 face=Consolas><FONT color=#0000ff size=2 face=Consolas><FONT color=#0000ff size=2 face=Consolas>Sub</FONT></FONT></FONT><FONT size=2 face=Consolas><FONT size=2 face=Consolas> LoadOrders1(</FONT></FONT><FONT color=#0000ff size=2 face=Consolas><FONT color=#0000ff size=2 face=Consolas><FONT color=#0000ff size=2 face=Consolas>ByVal</FONT></FONT></FONT><FONT size=2 face=Consolas><FONT size=2 face=Consolas> customerid </FONT></FONT><FONT color=#0000ff size=2 face=Consolas><FONT color=#0000ff size=2 face=Consolas><FONT color=#0000ff size=2 face=Consolas>As</FONT></FONT></FONT><FONT size=2 face=Consolas><FONT size=2 face=Consolas> </FONT></FONT><FONT color=#0000ff size=2 face=Consolas><FONT color=#0000ff size=2 face=Consolas><FONT color=#0000ff size=2 face=Consolas>Integer</FONT></FONT></FONT><FONT size=2 face=Consolas><FONT size=2 face=Consolas>)<BR>OrdersTableAdapter.FillBycustomerid(Customerorders1DataSet.orders, customerid)<BR></FONT></FONT><FONT color=#0000ff size=2 face=Consolas><FONT color=#0000ff size=2 face=Consolas><FONT color=#0000ff size=2 face=Consolas>End</FONT></FONT></FONT><FONT size=2 face=Consolas><FONT size=2 face=Consolas> </FONT></FONT><FONT color=#0000ff size=2 face=Consolas><FONT color=#0000ff size=2 face=Consolas><FONT color=#0000ff size=2 face=Consolas>Sub<BR></FONT></FONT></FONT></FONT></FONT></FONT><FONT size=2 face=Consolas><FONT size=2 face=Consolas></FONT></FONT>&nbsp;<BR><FONT size=2 face=Consolas>µ¥ÀÌÅ¸SET ÀÚ·á ÀÔ´Ï´Ù </FONT><BR>SELECT&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; orderid, customerid, orderdate, shippdate<BR>FROM&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; orders<BR>WHERE&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (customerid = @customerid)<BR>&nbsp;<BR>µð¹ö±ëÇÏ¸é Á¶È¸¿Í µî·Ï ÇÁ·Î±×·¥ ºÎºÐ¿¡ µ¥ÀÌÅ¸´Â Á¤»ó ÀÔ´Ï´Ù <BR>±×·±µ¥ µ¥ÀÌÅ¸´Â Ç×»ó Ã¹¹øÂ° Çà µ¥ÀÌÅ¸ ÀÔ´Ï´Ù <BR>&nbsp;<BR>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    <table width=100% border='0' cellpadding='0' cellspacing='0'>
                    <tr>
                    <td align='left' valign='top'>
                                <tr>
                                    <td nowrap style="position:relative" align='left'>
<a href="http://k.daum.net/qna/qna_index.html" class="bG12">Q&A Áö½Ä</a> &gt;
<a href="http://k.daum.net/qna/list.html?category_id=QC" class="bG12">ÄÄÇ»ÅÍ,ÀÎÅÍ³Ý</a> &gt;
<a href="http://k.daum.net/qna/list.html?category_id=QCA" class="bG12">ÇÁ·Î±×·¡¹Ö</a> &gt;
                <a href="http://k.daum.net/qna/list.html?category_id=QCA001" class="bG12"><b>C,C++</b></a>
                                    </td>
                                    <td nowrap style="position:relative" align='right'>
                                                <a href="http://k.daum.net/qna/answer.html?qid=56Tmh" onFocus="this.blur();"><img src="http://i2.daumcdn.net/imgsrc.search/knowledge4/2009/new/btn_rss_rely.gif" width="87" height="33" alt="´äº¯ÇÏ±â" border='0'/></a>
                                    </td>
                                </tr>
                        </table>
                    ]]>
                </description>
                    <author>SMART´Ô</author>
                <pubDate>9 May 2013 21:07:59 GMT</pubDate>
            </item>
            <item>
                <title>C¾ð¾î ÆÐÅÏÃâ·Â¹®Á¦ ¼Ò½ºÁ» ¾Ë·ÁÁÖ¼¼¿ä!</title>
                <link>http://k.daum.net/qna/view.html?qid=56KS5</link>
                <category>ÄÄÇ»ÅÍ,ÀÎÅÍ³Ý > ÇÁ·Î±×·¡¹Ö > C,C++</category>
                <description>
                    <![CDATA[
                        <table width=100% cellspacing='1' cellpadding='5' border='0' bgcolor='#ffffff' style='margin-right:10px;'>
                            <tbody>
                                <tr>
                                    <td width=100% bgcolor='#ffffff'>
                                    nÀ» ÀÔ·Â¹Þ¾Æ¼­ ÆÐÅÏÀ» Ãâ·ÂÇØ¾ß ÇÕ´Ï´Ù.<BR>
ÀÌ¶§, nÀº 1ºÎÅÍ 10±îÁöÀÇ ¼ýÀÚÀÌ¸ç ÀÔ·ÂµÈ ¼öÀÇ ¹üÀ§°¡ Àß¸øµÈ °æ¿ì, ´Ù½Ã ÀÔ·Â ¹Þµµ·Ï ÇÑ´Ù.<BR>
<BR>
<BR>
<BR>
<BR>*¡¡¡¡¡¡¡¡¡¡¡¡¡¡&nbsp;&nbsp;¡¡¡¡ ¡¡¡¡¡¡ *<BR>* *¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡ * *<BR>* * * ¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡* *<BR>* * ¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡ &nbsp;¡¡ *<BR>*<BR>5ÀÎ °æ¿ì&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;4ÀÎ °æ¿ì<BR>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    <table width=100% border='0' cellpadding='0' cellspacing='0'>
                    <tr>
                    <td align='left' valign='top'>
                                <tr>
                                    <td nowrap style="position:relative" align='left'>
<a href="http://k.daum.net/qna/qna_index.html" class="bG12">Q&A Áö½Ä</a> &gt;
<a href="http://k.daum.net/qna/list.html?category_id=QC" class="bG12">ÄÄÇ»ÅÍ,ÀÎÅÍ³Ý</a> &gt;
<a href="http://k.daum.net/qna/list.html?category_id=QCA" class="bG12">ÇÁ·Î±×·¡¹Ö</a> &gt;
                <a href="http://k.daum.net/qna/list.html?category_id=QCA001" class="bG12"><b>C,C++</b></a>
                                    </td>
                                    <td nowrap style="position:relative" align='right'>
                                                <a href="http://k.daum.net/qna/answer.html?qid=56KS5" onFocus="this.blur();"><img src="http://i2.daumcdn.net/imgsrc.search/knowledge4/2009/new/btn_rss_rely.gif" width="87" height="33" alt="´äº¯ÇÏ±â" border='0'/></a>
                                    </td>
                                </tr>
                        </table>
                    ]]>
                </description>
                <author>ºñ°ø°³´Ô</author>
                <pubDate>6 May 2013 11:01:07 GMT</pubDate>
            </item>
            <item>
                <title>ÇØ¹ÖÄÚµå °ü·Ã¹®Á¦ÀÔ´Ï´Ù. Àü¹®°¡´Ôµé µµ¿ÍÁÖ¼¼¿ä~</title>
                <link>http://k.daum.net/qna/view.html?qid=56Jb1</link>
                <category>ÄÄÇ»ÅÍ,ÀÎÅÍ³Ý > ÇÁ·Î±×·¡¹Ö > C,C++</category>
                <description>
                    <![CDATA[
                        <table width=100% cellspacing='1' cellpadding='5' border='0' bgcolor='#ffffff' style='margin-right:10px;'>
                            <tbody>
                                <tr>
                                    <td width=100% bgcolor='#ffffff'>
                                    1. ¼Û¼ö½Å °úÁ¤¿¡¼­ ¿À·ù°¡ ÀÏ¾î³ªÁö ¾Ê´Â °æ¿ì<BR>ÀÓÀÇÀÇ 8ºñÆ®ÀÇ ÀÔ·Â¹Þ¾Æ 4°³ÀÇ parity bit¸¦ »ý¼ºÇØ¼­ 8°³ÀÇ µ¥ÀÌÅÍ ºñÆ®¿Í 4°³ÀÇ ÆÐ¸®Æ¼ ºñÆ® ¿¬°áÇØ ÃÑ 12°³ÀÇ ºñÆ®¸¦ ¼Û½ÅÇÏ°í ¼ö½ÅÇØ¼­ ¼ö½ÅµÈ 12ºñÆ®¿¡¼­ ¿À·ù°¡ ÀÖ´ÂÁö È®ÀÎÇØÁÖ´Â C ÇÁ·Î±×·¥À» ÀÛ¼ºÇÏ½Ã¿À.<BR><BR>2. ¼Û¼ö½Å °úÁ¤¿¡¼­ ¿À·ù°¡ ÀÏ¾î³ª´Â ¾Ê´Â °æ¿ì<BR>ÀÓÀÇÀÇ 8ºñÆ®ÀÇ µ¥ÀÌÅÍ¿Í ¿À·ù°¡ ³¯ ºñÆ®ÀÇ À§Ä¡¸¦ ÀÔ·Â¹Þ¾Æ 4°³ÀÇ parity bit¸¦ »ý¼ºÇØ¼­ 8°³ÀÇ µ¥ÀÌÅÍ ºñÆ®¿Í 4°³ÀÇ ÆÐ¸®Æ¼ ºñÆ® ¿¬°áÇØ ÃÑ 12°³ÀÇ ºñÆ®¸¦ ¼Û½ÅÇÒ ¶§ ¿À·ù°¡ ³µÀ» ¶§ ¿À·ù ºñÆ®ÀÇ À§Ä¡¸¦ Ã£¾Æ ¿À·ù ºñÆ®¸¦ Á¤Á¤ÇØÁÖ´Â C ÇÁ·Î±×·¥À» ÀÛ¼ºÇÏ½Ã¿À.<BR><BR>ÁÖÀÇ: 2¹ø ¹®Á¦¿¡¼­´Â ¿À·ù°¡ ÀÏ¾î³ª´Â ºñÆ® À§Ä¡¸¦ 1¹øºÎÅÍ 12¹ø±îÁö °¢°¢À¸·Î ÇßÀ» ¶§ ¿À·ù À§Ä¡¸¦ Á¦´ë·Î Àâ¾Æ³»´ÂÁö º¸¿©ÁÖ±â ¹Ù¶ø´Ï´Ù. µû¶ó¼­ ´Ù¾çÇÑ ÀÔ·Â¿¡ ´ëÇØ¼­ ¿À·ù ºñÆ® À§Ä¡¸¦ 1, 2, ..., 12·Î °¢°¢ ÇßÀ» ¶§ ½ÇÇà °á°ú¸¦ Ä¸ÃÄ, ÀÎ¼â, cut, pasteÇØÁÖ±â ¹Ù¶ø´Ï´Ù.<BR>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    <table width=100% border='0' cellpadding='0' cellspacing='0'>
                    <tr>
                    <td align='left' valign='top'>
                                <tr>
                                    <td nowrap style="position:relative" align='left'>
<a href="http://k.daum.net/qna/qna_index.html" class="bG12">Q&A Áö½Ä</a> &gt;
<a href="http://k.daum.net/qna/list.html?category_id=QC" class="bG12">ÄÄÇ»ÅÍ,ÀÎÅÍ³Ý</a> &gt;
<a href="http://k.daum.net/qna/list.html?category_id=QCA" class="bG12">ÇÁ·Î±×·¡¹Ö</a> &gt;
                <a href="http://k.daum.net/qna/list.html?category_id=QCA001" class="bG12"><b>C,C++</b></a>
                                    </td>
                                    <td nowrap style="position:relative" align='right'>
                                                <a href="http://k.daum.net/qna/answer.html?qid=56Jb1" onFocus="this.blur();"><img src="http://i2.daumcdn.net/imgsrc.search/knowledge4/2009/new/btn_rss_rely.gif" width="87" height="33" alt="´äº¯ÇÏ±â" border='0'/></a>
                                    </td>
                                </tr>
                        </table>
                    ]]>
                </description>
                    <author>¹Ú¼º»ó´Ô</author>
                <pubDate>6 May 2013 05:40:33 GMT</pubDate>
            </item>
            <item>
                <title>ÇÁ·Î±×·¡¹Ö¿ä Á¤¸» ±ÞÇØ¿ä¤Å¤Ð¤Ð ¿À·ùÁ» ¤Ð¤Ð</title>
                <link>http://k.daum.net/qna/view.html?qid=56Ege</link>
                <category>ÄÄÇ»ÅÍ,ÀÎÅÍ³Ý > ÇÁ·Î±×·¡¹Ö > C,C++</category>
                <description>
                    <![CDATA[
                        <table width=100% cellspacing='1' cellpadding='5' border='0' bgcolor='#ffffff' style='margin-right:10px;'>
                            <tbody>
                                <tr>
                                    <td width=100% bgcolor='#ffffff'>
                                    ¿À·ù¸¦ µµ¹«Áö ¸ø°íÄ¡°Ú¾î¿ä¤Å ¤Ð¤Ð¤Ð Á¦¹ß Á» ¤¸µµ¿ÍÁê¼¼¿© ¤Ð¤Ð¤Ð<BR>
&nbsp;<BR>
<SPAN style="COLOR: #6600ff"><STRONG>Çì´õÆÄÀÏ</STRONG></SPAN><BR>
&lt;MyStructures.h&gt;<BR>
typedef struct Date<BR>{<BR>&nbsp;int year;<BR>&nbsp;int month;<BR>&nbsp;int day;<BR>}Date;<BR>
typedef struct Device<BR>{<BR>&nbsp;int dev_id;<BR>&nbsp;char dev_name[15];<BR>&nbsp;char manufacturer[15];<BR>&nbsp;double unit_price;<BR>&nbsp;Date install_date;<BR>}Device;<BR>
typedef struct ListNodeOfDevice<BR>{<BR>&nbsp;Device *pDe;<BR>&nbsp;ListNodeOfDevice *pPrev;<BR>&nbsp;ListNodeOfDevice *pNext;<BR>}ListNodeOfDevice;<BR>
typedef struct Factory_LL<BR>{<BR>&nbsp;int num_device;<BR>&nbsp;ListNodeOfDevice *pFirst;<BR>&nbsp;ListNodeOfDevice *pLast;<BR>}Factory_LL;<BR>
typedef struct TreeNodeOfDevice<BR>{<BR>&nbsp;Device *pDe;<BR>&nbsp;TreeNodeOfDevice *pL;<BR>&nbsp;TreeNodeOfDevice *pR;<BR>}TreeNodeOfDevice;<BR>
typedef struct Factory_BT<BR>{<BR>&nbsp;int num_device;<BR>&nbsp;Factory_BT *pTN;<BR>}Factory_BT;<BR>
&nbsp;<BR>
&nbsp;<BR>
<STRONG><SPAN style="COLOR: #6600ff">¼Ò½ºÄÚµå</SPAN></STRONG><BR>
&nbsp;<BR>
#include&lt;iostream&gt;<BR>#include&lt;fstream&gt;<BR>#include&lt;stdlib.h&gt;<BR>#include&lt;time.h&gt;<BR>#include&lt;Windows.h&gt;<BR>#include&lt;fstream&gt;<BR>#include&lt;iomanip&gt;<BR>#include"MyStructures.h"<BR>#define BIG_RAND_MAX 50000<BR>#define NUM_DEVICES 50000<BR>#define IDS_TO_SEARCH 5<BR>
using namespace std;<BR>
int bigRand();<BR>void initDevices(Device arrayOfDevices[],int size);<BR>void printDevice(Device *pD, ofstream *pOf);<BR>void printDeviceID(Device *pD, ofstream *pOf);<BR>void printArrayOfDevices(Device *pDA, int size, ofstream *pOf);<BR>void quickSortDevicesByID(Device *pDA, int left, int right);<BR>int partition(Device arrayOfDevices[], int left, int right, int pivotIndex);<BR>void selectionSortDevicesByInstallDate(Device *pDA,int size);<BR>void printFactory_LL(Factory_LL *pF, ofstream *pOf);<BR>void insertDeviceInOrderedList(Factory_LL *pF, ListNodeOfDevice *PLND);<BR>void printBT_inOrder(TreeNodeOfDevice *pT, ofstream *pOf);<BR>void insertDeviceInBinaryTree(TreeNodeOfDevice **ppT, TreeNodeOfDevice *pTND);<BR>Device *searchDeviceFromBinaryTree(TreeNodeOfDevice *pT, int dev_id);<BR>
void main()<BR>{<BR>
&nbsp;ofstream fout;<BR>&nbsp;int *idToSearch;<BR>&nbsp;fout.open("output.txt");<BR>&nbsp;if(fout.fail()) {<BR>&nbsp;&nbsp;cout &lt;&lt;"Output file (output.txt) open failed !!\n";<BR>&nbsp;}<BR>&nbsp;/*initialize array of devices */<BR>&nbsp;Device *pDA, *pD;<BR>&nbsp;pDA = new Device[NUM_DEVICES];<BR>&nbsp;initDevices(pDA, NUM_DEVICES);<BR>&nbsp;fout &lt;&lt; "\nInitialization of array of " &lt;&lt; NUM_DEVICES &lt;&lt; " devices is completed..\n";<BR>&nbsp;cout &lt;&lt; "\nInitialization of array of " &lt;&lt; NUM_DEVICES &lt;&lt; " devices is completed..\n";<BR>&nbsp;printArrayOfDevices(pDA, NUM_DEVICES, &amp;fout);<BR>&nbsp;quickSortDevicesByID(pDA, 0, NUM_DEVICES -1);<BR>&nbsp;fout &lt;&lt; "\nAfter quick sorting by Device ID\n";<BR>&nbsp;cout &lt;&lt; "\nAfter quick sorting by Device ID\n";<BR>&nbsp;printArrayOfDevices(pDA, NUM_DEVICES, &amp;fout);<BR>&nbsp;selectionSortDevicesByInstallDate(pDA, NUM_DEVICES);<BR>&nbsp;fout &lt;&lt; "\nAfter selection sorting by Installation date\n";<BR>&nbsp;cout &lt;&lt; "\nAfter selection sorting by Installation date\n";<BR>&nbsp;printArrayOfDevices(pDA, NUM_DEVICES, &amp;fout);<BR>&nbsp;/* Management of linked list of devices */<BR>&nbsp;Factory_LL *pF_LL;<BR>&nbsp;pF_LL = new Factory_LL;<BR>&nbsp;pF_LL-&gt;num_device = 0;<BR>&nbsp;pF_LL-&gt;pFirst = pF_LL-&gt;pLast = NULL;<BR>
&nbsp;ListNodeOfDevice *pLND;<BR>&nbsp;for (int d=0; d &lt;NUM_DEVICES; d++)<BR>&nbsp;{<BR>&nbsp;&nbsp;pLND = new ListNodeOfDevice;<BR>&nbsp;&nbsp;pLND-&gt;pPrev = pLND-&gt;pNext = NULL;<BR>&nbsp;&nbsp;pLND-&gt;pDe = &amp;pDA[d];<BR>&nbsp;&nbsp;insertDeviceInOrderedList(pF_LL, pLND);<BR>&nbsp;}<BR>&nbsp;cout &lt;&lt; "\nAfter insertDeviceInOrderedList()" &lt;&lt; endl;<BR>&nbsp;fout &lt;&lt; "\nAfter insertDeviceInOrderedList()" &lt;&lt; endl;<BR>&nbsp;printFactory_LL(pF_LL, &amp;fout);<BR>&nbsp;/* Management of Binary Tree of Devices */<BR>&nbsp;Factory_BT *pF_BT;<BR>&nbsp;pF_BT = new Factory_BT;<BR>&nbsp;pF_BT-&gt;num_device = 0;<BR>&nbsp;pF_BT-&gt;pTN = NULL;<BR>&nbsp;TreeNodeOfDevice *pTND;<BR>&nbsp;for (int d=0; d &lt;NUM_DEVICES; d++)<BR>&nbsp;{<BR>&nbsp;&nbsp;pTND = new TreeNodeOfDevice;<BR>&nbsp;&nbsp;pTND-&gt;pL = pTND-&gt;pR = NULL;<BR>&nbsp;&nbsp;pTND-&gt;pDe = &amp;pDA[d];<BR>&nbsp;&nbsp;/*insertDeviceInBinaryTree(&amp;pF_BT-&gt;pTN, pTND);*/<BR>&nbsp;&nbsp;pF_BT-&gt;num_device++;<BR>&nbsp;}<BR>&nbsp;cout &lt;&lt; "\nAfter insertDeviceInBinaryTree()" &lt;&lt; endl;<BR>&nbsp;fout &lt;&lt; "\nAfter insertDeviceInBinaryTree()" &lt;&lt; endl;<BR>&nbsp;fout &lt;&lt; "\nNumber of devices in factory (Binary Tree): " &lt;&lt; pF_BT-&gt;num_device &lt;&lt; endl;<BR>&nbsp;/*printBT_inOrder(pF_BT-&gt;pTN, &amp;fout);*/<BR>&nbsp;fout &lt;&lt; "\nSearching " &lt;&lt; IDS_TO_SEARCH &lt;&lt; " devices: " &lt;&lt; endl;<BR>&nbsp;cout &lt;&lt; "\nSearching " &lt;&lt; IDS_TO_SEARCH &lt;&lt; " devices: "&lt;&lt; endl;<BR>&nbsp;for (int i=0; i&lt;IDS_TO_SEARCH; i++)<BR>&nbsp;{<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; idToSearch = bigRand();<BR>&nbsp;&nbsp;pD = searchDeviceFromBinaryTree(pF_BT-&gt;pTN, idToSearch);<BR>&nbsp;&nbsp;if (pD != NULL)<BR>&nbsp;&nbsp;&nbsp;printDevice(pD, &amp;fout);<BR>&nbsp;&nbsp;else {<BR>&nbsp;&nbsp;&nbsp;fout &lt;&lt; "Device search (" &lt;&lt; idToSearch &lt;&lt; ") failed" &lt;&lt; endl;<BR>&nbsp;&nbsp;&nbsp;cout &lt;&lt; "Device search (" &lt;&lt; idToSearch &lt;&lt; ") failed" &lt;&lt; endl;<BR>&nbsp;&nbsp;}<BR>&nbsp;}<BR>&nbsp;cout &lt;&lt; "End of device search " &lt;&lt; endl;<BR>&nbsp;fout &lt;&lt; "End of device search " &lt;&lt; endl;<BR>&nbsp;delete (pDA);<BR>&nbsp;fout.close();<BR>
&nbsp;<BR>
<BR>}<BR>
void initDevices(Device arrayOfDevices[],int size)<BR>{<BR>&nbsp;int i;<BR>&nbsp;int name_len;<BR>&nbsp;name_len =&nbsp; rand()%11+5;<BR>
&nbsp;for(i=0;i&lt;NUM_DEVICES;i++)<BR>&nbsp;{<BR>&nbsp;&nbsp;arrayOfDevices[i].dev_id=bigRand();<BR>&nbsp;}<BR>&nbsp;for(i=0;i&lt;NUM_DEVICES;i++)<BR>&nbsp;{<BR>&nbsp;&nbsp;arrayOfDevices[i].dev_name[0] = rand()%26 + 'A';<BR>&nbsp;&nbsp;arrayOfDevices[i].manufacturer[0] = rand()%26 + 'A';<BR>&nbsp;&nbsp;for(int j = 1; j&lt;name_len; j++)&nbsp;&nbsp;<BR>&nbsp;&nbsp;{<BR>&nbsp;&nbsp;&nbsp;arrayOfDevices[i].dev_name[j] = rand()%26 + 'a'; <BR>&nbsp;&nbsp;&nbsp;arrayOfDevices[i].manufacturer[j] = rand()%26 + 'a';<BR>&nbsp;&nbsp;}<BR>&nbsp;&nbsp;arrayOfDevices[i].unit_price = (double)(rand()%30000)/100;<BR>&nbsp;&nbsp;arrayOfDevices[i].install_date.year=rand()%1501+1000;<BR>&nbsp;&nbsp;arrayOfDevices[i].install_date.month=rand()%12+1;<BR>&nbsp;&nbsp;arrayOfDevices[i].install_date.day=rand()%30+1;<BR>&nbsp;}<BR>}<BR>void printDevice(Device *pD, ofstream *pOf)<BR>{<BR>&nbsp;cout &lt;&lt; "Device_id(" &lt;&lt; setw(4) &lt;&lt; pD-&gt;dev_id &lt;&lt; "):" &lt;&lt; " Name(" &lt;&lt; pD-&gt;dev_name &lt;&lt; ", " &lt;&lt; pD-&gt;manufacturer &lt;&lt; ") ";<BR>&nbsp;cout &lt;&lt; "price(" &lt;&lt; pD-&gt;unit_price &lt;&lt; ") " &lt;&lt; "install date"&lt;&lt; pD-&gt;install_date &lt;&lt; ")" &lt;&lt; endl;<BR>&nbsp;*pOf&nbsp; &lt;&lt; "Device_id(" &lt;&lt; setw(4) &lt;&lt; pD-&gt;dev_id &lt;&lt; "):" &lt;&lt; " Name(" &lt;&lt; pD-&gt;dev_name &lt;&lt; ", " &lt;&lt; pD-&gt;manufacturer &lt;&lt; ") ";<BR>&nbsp;*pOf &lt;&lt; "price(" &lt;&lt; pD-&gt;unit_price &lt;&lt; ") " &lt;&lt; "install date" &lt;&lt; pD-&gt;install_date &lt;&lt; ")" &lt;&lt; endl;<BR>}<BR>void printDeviceID(Device *pD, ofstream *pOf)<BR>{<BR>&nbsp;cout &lt;&lt; setw(8) &lt;&lt; pD-&gt;dev_id &lt;&lt;",";<BR>&nbsp;*pOf &lt;&lt; setw(8) &lt;&lt; pD-&gt;dev_id &lt;&lt;",";<BR>}<BR>void quickSortDevicesByID(Device *pDA, int left, int right)<BR>{<BR>&nbsp;int pivotIndex, pivotNewIndex;<BR>
&nbsp;if (right &gt; left)<BR>&nbsp;{<BR>&nbsp;&nbsp;pivotIndex =&nbsp; left + (right-left)/2;<BR>&nbsp;&nbsp;pivotNewIndex = partition(pDA, left, right, pivotIndex);&nbsp;<BR>&nbsp;&nbsp;quickSortDevicesByID(pDA, left, pivotNewIndex - 1);&nbsp;<BR>&nbsp;&nbsp;quickSortDevicesByID(pDA, pivotNewIndex + 1, right);&nbsp;<BR>&nbsp;}<BR>}<BR>int partition(Device arrayOfDevices[], int left, int right, int pivotIndex)<BR>{<BR>&nbsp;Device temp;<BR>&nbsp;int i, storeIndex=0;<BR>&nbsp;double pivotValue;<BR>&nbsp;pivotValue = arrayOfDevices[pivotIndex].dev_id;<BR>&nbsp;temp =&nbsp; arrayOfDevices[pivotIndex]; <BR>&nbsp;arrayOfDevices[pivotIndex] = arrayOfDevices[right];<BR>&nbsp;arrayOfDevices[right] = temp;<BR>&nbsp;storeIndex = left;<BR>&nbsp;for (i = left; i&lt;= right-1; i++)<BR>&nbsp;{<BR>&nbsp;&nbsp;if ( arrayOfDevices[i].dev_id &lt;= pivotValue)&nbsp; <BR>&nbsp;&nbsp;{<BR>&nbsp;&nbsp;&nbsp;temp =&nbsp; arrayOfDevices[i];&nbsp; <BR>&nbsp;&nbsp;&nbsp;arrayOfDevices[i] =&nbsp; arrayOfDevices[storeIndex];<BR>&nbsp;&nbsp;&nbsp;arrayOfDevices[storeIndex] = temp;<BR>&nbsp;&nbsp;&nbsp;storeIndex++;<BR>&nbsp;&nbsp;}<BR>&nbsp;}<BR>&nbsp;temp =&nbsp; arrayOfDevices[right]; <BR>&nbsp;arrayOfDevices[right] = arrayOfDevices[storeIndex];<BR>&nbsp;arrayOfDevices[storeIndex] = temp;<BR>&nbsp;return storeIndex;&nbsp; <BR>}<BR>/*void selectionSortDevicesByInstallDate(Device *pDA,int size)<BR>{<BR>
&nbsp;Device temp;<BR>&nbsp;int min = 0;<BR>&nbsp;for(int i = 0; i&lt;size - 1; i++)<BR>&nbsp;{<BR>&nbsp;&nbsp;min = i;<BR>&nbsp;&nbsp;for(int j = i+1; j&lt;size; j++)<BR>&nbsp;&nbsp;{<BR>&nbsp;&nbsp;&nbsp;if(pDA-&gt;install_date&gt;arrayOfDevices[min].install_date)<BR>&nbsp;&nbsp;&nbsp;&nbsp;min = j;<BR>&nbsp;&nbsp;&nbsp;else if(arrayOfDevices[j].install_date==arrayOfDevices[min].install_date)<BR>&nbsp;&nbsp;&nbsp;{<BR>&nbsp;&nbsp;&nbsp;&nbsp;if(arrayOfDevices[j].install_date&gt;arrayOfDevices[min].install_date)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;min = j;<BR>&nbsp;&nbsp;&nbsp;}<BR>&nbsp;&nbsp;}<BR>&nbsp;&nbsp;temp = arrayOfDevices[i];<BR>&nbsp;&nbsp;arrayOfDevices[i] =arrayOfDevices[min];<BR>&nbsp;&nbsp;arrayOfDevices[min] = temp;<BR>&nbsp;}<BR>}*/<BR>
void printFactory_LL(Factory_LL *pF, ofstream *pOf)<BR>{<BR>&nbsp;int countN = 0;<BR>&nbsp;ListNodeOfDevice *pLN;&nbsp;// Ãâ·ÂÇÏ±âÀ§ÇØListNode »ý¼º<BR>
&nbsp;pLN=pF-&gt;pFirst;&nbsp;// pLN¿¡¸ÇÃ³À½³ëµåÀÇÁÖ¼Ò¸¦³Ö´Â´Ù.<BR>
&nbsp;while ((pLN != NULL))&nbsp;// Ã³À½ºÎÅÍ¸¶Áö¸·³ëµå±îÁöwhile¹®À»µ·´Ù.<BR>&nbsp;{<BR>&nbsp;&nbsp;if(countN&lt;100)<BR>&nbsp;&nbsp;{<BR>&nbsp;&nbsp;&nbsp;printDeviceID(pLN-&gt;pDe,pOf);<BR>&nbsp;&nbsp;&nbsp;if(countN%10==9)<BR>&nbsp;&nbsp;&nbsp;{<BR>&nbsp;&nbsp;&nbsp;&nbsp;cout&lt;&lt;endl;<BR>&nbsp;&nbsp;&nbsp;&nbsp;*pOf&lt;&lt;endl;<BR>&nbsp;&nbsp;&nbsp;}<BR>&nbsp;&nbsp;}<BR>&nbsp;&nbsp;if(countN&gt;=49900 &amp;&amp; countN&lt;50000)<BR>&nbsp;&nbsp;{<BR>&nbsp;&nbsp;&nbsp;printDeviceID(pLN-&gt;pDe,pOf);<BR>&nbsp;&nbsp;&nbsp;if(countN%10==9)<BR>&nbsp;&nbsp;&nbsp;{<BR>&nbsp;&nbsp;&nbsp;&nbsp;cout&lt;&lt;endl;<BR>&nbsp;&nbsp;&nbsp;&nbsp;*pOf&lt;&lt;endl;<BR>&nbsp;&nbsp;&nbsp;}<BR>&nbsp;&nbsp;}<BR>&nbsp;&nbsp;pLN=pLN-&gt;pNext;&nbsp;// ÇöÀç³ëµå¸¦´ÙÀ½³ëµå·Î<BR>&nbsp;&nbsp;countN++;<BR>&nbsp;}<BR>&nbsp;*pOf&lt;&lt;endl;<BR>}<BR>void insertDeviceInOrderedList(Factory_LL *pF, ListNodeOfDevice *pLND)<BR>{<BR>&nbsp;ListNodeOfDevice *pN;<BR>&nbsp;pN = new ListNodeOfDevice;<BR>&nbsp;pN-&gt;pDe=pF;<BR>&nbsp;if(pF-&gt;num_device==0)<BR>&nbsp;{<BR>&nbsp;&nbsp;pF-&gt;pFirst = pF-&gt;pLast = pN;<BR>&nbsp;&nbsp;pN-&gt;pNext=NULL;<BR>&nbsp;&nbsp;pN-&gt;pPrev=NULL;<BR>&nbsp;&nbsp;pF-&gt;num_device++;<BR>&nbsp;}<BR>&nbsp;else if(pF-&gt;num_device&lt;NUM_DEVICES)<BR>&nbsp;{<BR>&nbsp;&nbsp;for(ListNodeOfDevice *pX = pF-&gt;pFirst; pX!=NULL;)<BR>&nbsp;&nbsp;{<BR>&nbsp;&nbsp;&nbsp;if(pN-&gt;pDe-&gt;dev_id&lt;pX-&gt;pDe-&gt;dev_id)<BR>&nbsp;&nbsp;&nbsp;{<BR>&nbsp;&nbsp;&nbsp;&nbsp;pN-&gt;pNext = pX;<BR>&nbsp;&nbsp;&nbsp;&nbsp;pN-&gt;pPrev = pX-&gt;pPrev;<BR>&nbsp;&nbsp;&nbsp;&nbsp;if(pX!=pF-&gt;pFirst)<BR>&nbsp;&nbsp;&nbsp;&nbsp;{<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if(pX-&gt;pPrev!=NULL)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;pX-&gt;pPrev-&gt;pNext=pN;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;pX-&gt;pPrev=pN;<BR>&nbsp;&nbsp;&nbsp;&nbsp;}<BR>&nbsp;&nbsp;&nbsp;&nbsp;else<BR>&nbsp;&nbsp;&nbsp;&nbsp;{<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;pF-&gt;pFirst=pN;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;pN-&gt;pPrev=NULL;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;pX-&gt;pPrev=pN;<BR>&nbsp;&nbsp;&nbsp;&nbsp;}<BR>&nbsp;&nbsp;&nbsp;&nbsp;pF-&gt;num_device++;<BR>&nbsp;&nbsp;&nbsp;&nbsp;break;<BR>&nbsp;&nbsp;&nbsp;}<BR>&nbsp;&nbsp;&nbsp;else if((pX==pF-&gt;pLast)&amp;&amp;(pN-&gt;pDe-&gt;dev_id&gt;=pX-&gt;pDe-&gt;dev_id))<BR>&nbsp;&nbsp;&nbsp;{<BR>&nbsp;&nbsp;&nbsp;&nbsp;pN-&gt;pPrev=pX;<BR>&nbsp;&nbsp;&nbsp;&nbsp;pX-&gt;pNext=pN;<BR>&nbsp;&nbsp;&nbsp;&nbsp;pF-&gt;pLast=pN;<BR>&nbsp;&nbsp;&nbsp;&nbsp;pN-&gt;pNext = NULL;<BR>&nbsp;&nbsp;&nbsp;&nbsp;pF-&gt;num_device++;<BR>&nbsp;&nbsp;&nbsp;&nbsp;break;<BR>&nbsp;&nbsp;&nbsp;}<BR>&nbsp;&nbsp;&nbsp;else<BR>&nbsp;&nbsp;&nbsp;{<BR>&nbsp;&nbsp;&nbsp;&nbsp;if(pX!=pF-&gt;pLast)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;pX = pX-&gt;pNext;<BR>&nbsp;&nbsp;&nbsp;&nbsp;else<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;break;<BR>&nbsp;&nbsp;&nbsp;}<BR>&nbsp;&nbsp;}<BR>&nbsp;}<BR>&nbsp;else<BR>&nbsp;{<BR>&nbsp;&nbsp;cout&lt;&lt;"X";<BR>&nbsp;&nbsp;cout&lt;&lt;"(NUM_DEVICES : " &lt;&lt;NUM_DEVICES&lt;&lt;")"&lt;&lt;endl;<BR>&nbsp;}<BR>}<BR>void printBT_inOrder(TreeNodeOfDevice *pT, ofstream *pOf)<BR>{<BR>
&nbsp;if(pT!=NULL)<BR>&nbsp;{<BR>&nbsp;&nbsp;printBT_inOrder(pT-&gt;pL,pOf);<BR>&nbsp;&nbsp;if(pT-&gt;pDe-&gt;dev_id&lt;50 || (pT-&gt;pDe-&gt;dev_id&gt;=49900 &amp;&amp; pT-&gt;pDe-&gt;dev_id&lt;50000))<BR>&nbsp;&nbsp;{<BR>&nbsp;&nbsp;&nbsp;printDeviceID(pT-&gt;pDe,pOf);<BR>&nbsp;&nbsp;&nbsp;if(pT-&gt;pDe-&gt;dev_id%10==9)<BR>&nbsp;&nbsp;&nbsp;{<BR>&nbsp;&nbsp;&nbsp;&nbsp;cout&lt;&lt;endl;<BR>&nbsp;&nbsp;&nbsp;&nbsp;*pOf&lt;&lt;endl;<BR>&nbsp;&nbsp;&nbsp;}<BR>&nbsp;&nbsp;}<BR>
&nbsp;&nbsp;printBT_inOrder(pT-&gt;pR,pOf);<BR>&nbsp;}<BR>}<BR>Device *searchDeviceFromBinaryTree(TreeNodeOfDevice *pT, int dev_id)<BR>{<BR>
&nbsp;if(pT == NULL)<BR>&nbsp;{<BR>&nbsp;&nbsp;return NULL;<BR>&nbsp;}<BR>&nbsp;else if(pT-&gt;pDe-&gt;dev_id ==dev_id)<BR>&nbsp;{<BR>&nbsp;&nbsp;return pT-&gt;pDe;<BR>&nbsp;}<BR>&nbsp;else if(pT-&gt;pDe-&gt;dev_id &lt; dev_id)<BR>&nbsp;{<BR>&nbsp;&nbsp;searchDeviceFromBinaryTree(pT-&gt;pR, dev_id);<BR>&nbsp;}<BR>&nbsp;else<BR>&nbsp;{<BR>&nbsp;&nbsp;searchDeviceFromBinaryTree(pT-&gt;pL,dev_id);<BR>&nbsp;}<BR>}<BR>void insertDeviceInBinaryTree(TreeNodeOfDevice **ppT, TreeNodeOfDevice *pTND)<BR>{<BR>
<BR>}<BR>int bigRand()<BR>{<BR>&nbsp;static char flag_init=0;<BR>&nbsp;static char *flag;<BR>&nbsp;static int big_rand_gen_counter=0;<BR>&nbsp;unsigned int Br;<BR>&nbsp;int i;<BR>
&nbsp;if(flag_init==0)<BR>&nbsp;{<BR>&nbsp;&nbsp;flag=(char*)malloc(sizeof(char)*BIG_RAND_MAX);<BR>
&nbsp;&nbsp;for(i=0;i&lt;BIG_RAND_MAX;i++)<BR>&nbsp;&nbsp;{<BR>&nbsp;&nbsp;&nbsp;flag[i]=0;&nbsp;&nbsp;<BR>&nbsp;&nbsp;}<BR>&nbsp;&nbsp;flag_init=1;<BR>&nbsp;}<BR>
&nbsp;do{<BR>&nbsp;&nbsp;Br=((rand()&lt;&lt;16)|rand())%BIG_RAND_MAX;&nbsp;&nbsp;<BR>&nbsp;}while(flag[Br]==1);&nbsp;&nbsp;<BR>
&nbsp;flag[Br]++;&nbsp;&nbsp;<BR>&nbsp;big_rand_gen_counter++;&nbsp;&nbsp;<BR>
&nbsp;if(big_rand_gen_counter&gt;=BIG_RAND_MAX);&nbsp;&nbsp;<BR>&nbsp;{<BR>&nbsp;&nbsp;flag_init=0;<BR>&nbsp;&nbsp;big_rand_gen_counter=0;<BR>&nbsp;}<BR>
&nbsp;return Br;<BR>}<BR><BR>
&nbsp;<BR>
&nbsp;<BR>
¼Ò½º¸¦ ºñÁê¾ó½ºÆ©µð¿À 2010À¸·Î µ¹·ÈÀ»¶§ ¿À·ù¸¦ µµ¹«Áö ¼öÁ¤ÇÏÁú ¸øÇÏ°Ú¾î¿ä ¤Ð¤Ð¤Ð¤Ð<BR>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    <table width=100% border='0' cellpadding='0' cellspacing='0'>
                    <tr>
                    <td align='left' valign='top'>
                                <tr>
                                    <td nowrap style="position:relative" align='left'>
<a href="http://k.daum.net/qna/qna_index.html" class="bG12">Q&A Áö½Ä</a> &gt;
<a href="http://k.daum.net/qna/list.html?category_id=QC" class="bG12">ÄÄÇ»ÅÍ,ÀÎÅÍ³Ý</a> &gt;
<a href="http://k.daum.net/qna/list.html?category_id=QCA" class="bG12">ÇÁ·Î±×·¡¹Ö</a> &gt;
                <a href="http://k.daum.net/qna/list.html?category_id=QCA001" class="bG12"><b>C,C++</b></a>
                                    </td>
                                    <td nowrap style="position:relative" align='right'>
                                                <a href="http://k.daum.net/qna/answer.html?qid=56Ege" onFocus="this.blur();"><img src="http://i2.daumcdn.net/imgsrc.search/knowledge4/2009/new/btn_rss_rely.gif" width="87" height="33" alt="´äº¯ÇÏ±â" border='0'/></a>
                                    </td>
                                </tr>
                        </table>
                    ]]>
                </description>
                <author>ºñ°ø°³´Ô</author>
                <pubDate>4 May 2013 04:37:06 GMT</pubDate>
            </item>
            <item>
                <title>C++¾ð¾î ¹®ÀÚ¿­ ¼ÒÆÃ¼Ò½º Á» ¾Ë·ÁÁê¼¼¿ä ¤Ð¤Ð</title>
                <link>http://k.daum.net/qna/view.html?qid=56DRN</link>
                <category>ÄÄÇ»ÅÍ,ÀÎÅÍ³Ý > ÇÁ·Î±×·¡¹Ö > C,C++</category>
                <description>
                    <![CDATA[
                        <table width=100% cellspacing='1' cellpadding='5' border='0' bgcolor='#ffffff' style='margin-right:10px;'>
                            <tbody>
                                <tr>
                                    <td width=100% bgcolor='#ffffff'>
                                    [<SPAN style="COLOR: #0900ff"><STRONG>Çì´õ ÆÄÀÏ MyStructures.h</STRONG></SPAN>]<BR>
<STRONG>typedef struct Student<BR>{<BR>&nbsp;int st_id;<BR>&nbsp;char last_name[15];<BR>&nbsp;char first_name[15];<BR>&nbsp;char department[15];<BR>&nbsp;int grade;&nbsp;//range : 1~8<BR>&nbsp;double GPA;<BR>&nbsp;char description[255];<BR>} Student;</STRONG><BR>
<STRONG>typedef struct ListNode<BR>{<BR>&nbsp;Student *pS;<BR>&nbsp;ListNode *pPrev;<BR>&nbsp;ListNode *pNext;<BR>} ListNode;</STRONG><BR>
<STRONG>typedef struct ListOfStudents<BR>{<BR>&nbsp;ListNode *pFirst;<BR>&nbsp;ListNode *pLast;<BR>&nbsp;int num_student;<BR>} ListOfStudents;</STRONG><BR>
<STRONG>typedef struct TreeNode<BR>{<BR>&nbsp;Student *pS;<BR>&nbsp;TreeNode *pL;<BR>&nbsp;TreeNode *pR;<BR>} TreeNode;</STRONG><BR>
<STRONG>typedef struct StudentTree<BR>{<BR>&nbsp;int num_student;<BR>&nbsp;TreeNode *pTN;<BR>} StudentTree;</STRONG><BR>
&nbsp;<BR>
[<STRONG><SPAN style="COLOR: #0900ff">¼Ò½º ÄÚµå</SPAN></STRONG>]<BR><STRONG>#include &lt;time.h&gt;<BR>#include &lt;iostream&gt;<BR>#include &lt;fstream&gt;<BR>#include &lt;iomanip&gt;<BR>#include &lt;windows.h&gt;<BR>#include "MyStructures.h"</STRONG><BR>
<STRONG>#define NUM_STUDENTS 1000<BR>#define STUDENTS_TO_SEARCH 10<BR>#define IDS_TO_SEARCH 10</STRONG><BR>
<STRONG>using namespace std;</STRONG><BR>
<STRONG>void genBigRandArray(int randArray[], int size, int range);<BR>void initStudents(Student arrayOfStudent[], int size,int *studentID);<BR>void printStudent(Student *pS, ofstream *pOf);<BR>void printStudentID(Student *pS, ofstream *pOf);<BR>void selectionSortStudentArrayByGPA_ID(Student arrayOfStudent[], int size);<BR>void printArrayOfStudents(Student arrayOfStudent[], int size, ofstream *pOf);<BR>int partition(Student arrayOfStudent[], int left, int right, int pivotIndex);<BR>void quickSortStudentArrayByID(Student arrayOfStudent[], int left, int right);<BR>Student * searchStudentFromArray (Student arrayOfStudent[], int size, int st_id);</STRONG><BR>
<STRONG>void InsertStudentInList(ListOfStudents *pLS, Student *pNn);<BR>void printListOfStudents(ListOfStudents *pLS, ofstream *pOf);<BR>Student * searchStudentFromList(ListOfStudents *pLS, int id_to_search);</STRONG><BR>
<STRONG>void printTreeInOrderOfStudents(TreeNode *pST, ofstream *pOf);<BR>void insertStudentInTree(TreeNode **ppTN, Student *pSTT, ofstream *pOf);<BR>Student *searchStudentFromTree(TreeNode *pTN, int id_to_search);</STRONG><BR>
<STRONG>void main()<BR>{<BR>&nbsp;Student *pSA, *pS;<BR>&nbsp;int *idToSearch;<BR>&nbsp;int *studentID;<BR>&nbsp;ofstream fout;<BR>&nbsp;LARGE_INTEGER freq, t_1, t_2;<BR>&nbsp;LONGLONG t_diff;<BR>&nbsp;double elapsed_time, accumulated_elapsedTime;<BR>&nbsp;QueryPerformanceFrequency(&amp;freq);<BR>&nbsp;fout.open("output.txt");<BR>&nbsp;if (fout.fail()) {<BR>&nbsp;&nbsp;cout &lt;&lt; "Output file (output.txt) open failed !!\n";<BR>&nbsp;&nbsp;return;<BR>&nbsp;}<BR>&nbsp;/* Initialize Students */<BR>&nbsp;pSA = new Student[NUM_STUDENTS];<BR>&nbsp;studentID=new int[NUM_STUDENTS];<BR>&nbsp;genBigRandArray(studentID,NUM_STUDENTS,NUM_STUDENTS);<BR>&nbsp;for(int i = 0; i&lt;NUM_STUDENTS; i++)<BR>&nbsp;{<BR>&nbsp;&nbsp;initStudents(pSA, NUM_STUDENTS, studentID);<BR>&nbsp;}<BR>&nbsp;idToSearch = new int[IDS_TO_SEARCH];<BR>&nbsp;genBigRandArray(idToSearch, STUDENTS_TO_SEARCH, NUM_STUDENTS);<BR>&nbsp;cout&lt;&lt;"Initialization of"&lt;&lt;" is completed..."&lt;&lt;endl;<BR>&nbsp;/* Management of array of students */<BR>&nbsp;cout &lt;&lt; "\nInitialized student array:\n";<BR>&nbsp;fout &lt;&lt; "\nInitialized student array:\n";<BR>&nbsp;printArrayOfStudents(pSA, NUM_STUDENTS, &amp;fout);<BR>&nbsp;cout &lt;&lt; "\n*** Management of structure array of students *** \n";<BR>&nbsp;cout &lt;&lt; "Students array sorted by ID:\n";<BR>&nbsp;fout &lt;&lt; "\n*** Management of structure array of students *** \n";<BR>&nbsp;fout &lt;&lt; "Students array sorted by ID:\n";<BR>&nbsp;QueryPerformanceCounter(&amp;t_1);<BR>&nbsp;quickSortStudentArrayByID(pSA, 0, NUM_STUDENTS-1);<BR>&nbsp;QueryPerformanceCounter(&amp;t_2);<BR>&nbsp;t_diff = t_2.QuadPart - t_1.QuadPart;<BR>&nbsp;elapsed_time = ((double) t_diff / freq.QuadPart)*1000000; // in microsec<BR>&nbsp;cout &lt;&lt; "Time for quickSorting of array of students: " &lt;&lt; elapsed_time &lt;&lt; " microseconds\n";<BR>&nbsp;fout &lt;&lt; "Time for quickSorting of array of students: " &lt;&lt; elapsed_time &lt;&lt; " microseconds\n";<BR>&nbsp;printArrayOfStudents(pSA, NUM_STUDENTS, &amp;fout);<BR>&nbsp;<BR>&nbsp;cout &lt;&lt; "\n" &lt;&lt; IDS_TO_SEARCH &lt;&lt; " searched results from Array:\n";<BR>&nbsp;fout &lt;&lt; "\n" &lt;&lt; IDS_TO_SEARCH &lt;&lt; " searched results from Array:\n";<BR>&nbsp;accumulated_elapsedTime = 0;<BR>&nbsp;<BR>&nbsp;QueryPerformanceCounter(&amp;t_1);<BR>&nbsp;for (int i=0; i&lt; STUDENTS_TO_SEARCH; i++)<BR>&nbsp;{<BR>&nbsp;&nbsp;pS = searchStudentFromArray(pSA, NUM_STUDENTS, idToSearch[i]);<BR>&nbsp;&nbsp;printStudent(pS, &amp;fout);<BR>&nbsp;}<BR>&nbsp;QueryPerformanceCounter(&amp;t_2);<BR>&nbsp;t_diff = t_2.QuadPart - t_1.QuadPart;<BR>&nbsp;elapsed_time = ((double) t_diff / freq.QuadPart)*1000000; // in microsec<BR>&nbsp;accumulated_elapsedTime += elapsed_time;</STRONG><BR>
<STRONG>&nbsp;cout &lt;&lt; "Average time for searching a student from Array : ";<BR>&nbsp;cout &lt;&lt; accumulated_elapsedTime / STUDENTS_TO_SEARCH &lt;&lt; " microseconds\n";<BR>&nbsp;fout &lt;&lt; "Average time for searching a student from Array : ";<BR>&nbsp;fout &lt;&lt; accumulated_elapsedTime / STUDENTS_TO_SEARCH &lt;&lt; " microseconds\n";</STRONG><BR>
<STRONG>&nbsp;cout &lt;&lt; "\nStudents array sorted by GPA_ID:\n";<BR>&nbsp;fout &lt;&lt; "\nStudents array sorted by GPA_ID:\n";<BR>&nbsp;selectionSortStudentArrayByGPA_ID(pSA, NUM_STUDENTS);<BR>&nbsp;printArrayOfStudents(pSA, NUM_STUDENTS, &amp;fout);<BR>&nbsp;<BR>&nbsp;/* Management of linked list of students*/ <BR>&nbsp;fout &lt;&lt; "\n*** Management of linked list of students *** \n";<BR>&nbsp;ListOfStudents *pLS;<BR>&nbsp;pLS = new ListOfStudents;<BR>&nbsp;pLS-&gt;num_student = 0;<BR>&nbsp;pLS-&gt;pFirst = pLS-&gt;pLast = NULL;<BR>&nbsp;QueryPerformanceCounter(&amp;t_1);<BR>&nbsp;for (int st=0; st&lt;NUM_STUDENTS; st++)<BR>&nbsp;{<BR>&nbsp;&nbsp;InsertStudentInList(pLS, &amp;pSA[st]);<BR>&nbsp;}<BR>&nbsp;QueryPerformanceCounter(&amp;t_2);<BR>&nbsp;t_diff = t_2.QuadPart - t_1.QuadPart;<BR>&nbsp;elapsed_time = ((double) t_diff / freq.QuadPart)*1000000; // in microsec<BR>&nbsp;cout &lt;&lt; "Insertion of students in linked list completed !!.\n";<BR>&nbsp;fout &lt;&lt; "Average time to insert a student in sorted linked list: ";<BR>&nbsp;fout &lt;&lt; elapsed_time/NUM_STUDENTS &lt;&lt; " microseconds\n";<BR>&nbsp;fout &lt;&lt; "\nList of " &lt;&lt; pLS-&gt;num_student;<BR>&nbsp;fout &lt;&lt; " Students in sorted order by ID (decreasing order):\n";<BR>&nbsp;printListOfStudents(pLS, &amp;fout);</STRONG><BR>
<STRONG>&nbsp;fout &lt;&lt; "\n" &lt;&lt; STUDENTS_TO_SEARCH &lt;&lt; " searched results from Linked List:\n";<BR>&nbsp;accumulated_elapsedTime = 0;<BR>&nbsp;for (int i=0; i&lt; STUDENTS_TO_SEARCH; i++)<BR>&nbsp;{<BR>&nbsp;&nbsp;QueryPerformanceCounter(&amp;t_1);<BR>&nbsp;&nbsp;pS = searchStudentFromList(pLS, idToSearch[i]);<BR>&nbsp;&nbsp;QueryPerformanceCounter(&amp;t_2);<BR>&nbsp;&nbsp;t_diff = t_2.QuadPart - t_1.QuadPart;<BR>&nbsp;&nbsp;elapsed_time = ((double) t_diff / freq.QuadPart)*1000000; // in microsec<BR>&nbsp;&nbsp;accumulated_elapsedTime += elapsed_time;<BR>&nbsp;&nbsp;printStudent(pS, &amp;fout);<BR>&nbsp;}<BR>&nbsp;fout &lt;&lt; "Average time for searching a student from Linked List : ";<BR>&nbsp;fout &lt;&lt; accumulated_elapsedTime / STUDENTS_TO_SEARCH &lt;&lt; " microseconds\n";</STRONG><BR>
<STRONG>&nbsp;/* Management of Binary Tree of Students */<BR>&nbsp;cout &lt;&lt; "\n*** Management of Binary Tree of students *** \n";<BR>&nbsp;fout &lt;&lt; "\n*** Management of Binary Tree of students *** \n";<BR>&nbsp;StudentTree *pST;<BR>&nbsp;pST = new StudentTree;<BR>&nbsp;pST-&gt;num_student = 0;<BR>&nbsp;pST-&gt;pTN = NULL;<BR>&nbsp;QueryPerformanceCounter(&amp;t_1);<BR>&nbsp;for (int st=0; st&lt;NUM_STUDENTS; st++)<BR>&nbsp;{<BR>&nbsp;&nbsp;insertStudentInTree(&amp;pST-&gt;pTN, &amp;pSA[st], &amp;fout);<BR>&nbsp;&nbsp;pST-&gt;num_student++;<BR>&nbsp;}<BR>&nbsp;QueryPerformanceCounter(&amp;t_2);<BR>&nbsp;t_diff = t_2.QuadPart - t_1.QuadPart;<BR>&nbsp;elapsed_time = ((double) t_diff / freq.QuadPart)*1000000; // in microsec<BR>&nbsp;fout &lt;&lt; "Average time to insert a student in binary tree: ";<BR>&nbsp;fout &lt;&lt; elapsed_time/NUM_STUDENTS &lt;&lt; " microseconds\n";<BR>&nbsp;cout &lt;&lt; "Insertion of students in tree completed !!.\n";<BR>&nbsp;cout.flush();<BR>&nbsp;fout &lt;&lt; "\nTree of " &lt;&lt; pST-&gt;num_student &lt;&lt;" Students in sorted order by ID (in-order):\n";<BR>&nbsp;fout.flush();<BR>&nbsp;printTreeInOrderOfStudents(pST-&gt;pTN, &amp;fout);<BR>&nbsp;fout &lt;&lt; "\n" &lt;&lt; STUDENTS_TO_SEARCH &lt;&lt; " searched results from Binary Tree..\n";<BR>&nbsp;accumulated_elapsedTime = 0;<BR>&nbsp;for (int i=0; i&lt; STUDENTS_TO_SEARCH; i++)<BR>&nbsp;{<BR>&nbsp;&nbsp;QueryPerformanceCounter(&amp;t_1);<BR>&nbsp;&nbsp;pS = searchStudentFromTree(pST-&gt;pTN, idToSearch[i]);<BR>&nbsp;&nbsp;QueryPerformanceCounter(&amp;t_2);<BR>&nbsp;&nbsp;t_diff = t_2.QuadPart - t_1.QuadPart;<BR>&nbsp;&nbsp;elapsed_time = ((double) t_diff / freq.QuadPart)*1000000; // in microsec<BR>&nbsp;&nbsp;accumulated_elapsedTime += elapsed_time;<BR>&nbsp;&nbsp;printStudent(pS, &amp;fout);<BR>&nbsp;}<BR>&nbsp;fout &lt;&lt; "Average time for searching a student from binary tree : ";<BR>&nbsp;fout &lt;&lt; accumulated_elapsedTime / STUDENTS_TO_SEARCH &lt;&lt; " microseconds\n";<BR>&nbsp;cout &lt;&lt; "Searching students from Binary Tree completed." &lt;&lt; endl;<BR>&nbsp;fout &lt;&lt; endl;</STRONG><BR>
<STRONG>&nbsp;free (pSA);<BR>&nbsp;fout.close();<BR>&nbsp;cout &lt;&lt; "Exit program ..." &lt;&lt; endl;<BR>}</STRONG><BR>
<STRONG>void genBigRandArray(int randArray[], int size, int range)<BR>{<BR>&nbsp;char *flag;<BR>&nbsp;flag = new char[range];<BR>&nbsp;for(int i = 0; i&lt;size; i++)<BR>&nbsp;&nbsp;flag[i] = 0;<BR>&nbsp;unsigned int uint_32;<BR>&nbsp;unsigned int bigRand;<BR>&nbsp;int count = 0;<BR>&nbsp;while(count &lt; size)<BR>&nbsp;{<BR>&nbsp;&nbsp;uint_32 = (((long)rand() &lt;&lt; 15) | rand());<BR>&nbsp;&nbsp;bigRand = uint_32 % range;<BR>&nbsp;&nbsp;if(flag[bigRand] == '1')<BR>&nbsp;&nbsp;&nbsp;continue;<BR>&nbsp;&nbsp;else<BR>&nbsp;&nbsp;{<BR>&nbsp;&nbsp;&nbsp;flag[bigRand] = '1';<BR>&nbsp;&nbsp;&nbsp;randArray[count++] = bigRand;<BR>&nbsp;&nbsp;}<BR>&nbsp;}<BR>}</STRONG><BR>
<STRONG>void initStudents(Student arrayOfStudent[], int size ,int *StudentID)<BR>{<BR>&nbsp;for(int i = 0; i&lt;size; i++)<BR>&nbsp;{<BR>&nbsp;&nbsp;int name_len;<BR>&nbsp;&nbsp;name_len = rand()%13+3;&nbsp;//3~15±ÛÀÚ »ý¼º<BR>&nbsp;&nbsp;arrayOfStudent[i].first_name[0] = rand()%26 + 'A';&nbsp;//Ã¹±ÛÀÚ ´ë¹®ÀÚ<BR>&nbsp;&nbsp;arrayOfStudent[i].last_name[0] = rand()%26 + 'A';&nbsp;//Ã¹±ÛÀÚ ´ë¹®ÀÚ<BR>&nbsp;&nbsp;for(int j = 1; j&lt;name_len; j++)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//µÎ¹øÂ° ±ÛÀÚºÎÅÍ name_len±îÁö ¹Þ¾Æ¿È<BR>&nbsp;&nbsp;{<BR>&nbsp;&nbsp;&nbsp;arrayOfStudent[i].first_name[j] = rand()%26 + 'a'; // µÎ¹øÂ° ±ÛÂ¥ºÎÅÍ ¼Ò¹®ÀÚ<BR>&nbsp;&nbsp;&nbsp;arrayOfStudent[i].last_name[j] = rand()%26 + 'a'; // µÎ¹øÂ° ±ÛÂ¥ºÎÅÍ ¼Ò¹®ÀÚ<BR>&nbsp;&nbsp;}<BR>&nbsp;&nbsp;arrayOfStudent[i].first_name[name_len] = '\0';&nbsp;//¹®ÀÚ¿­ ³¡À» 0À¸·Î ÃÊ±âÈ­<BR>&nbsp;&nbsp;arrayOfStudent[i].last_name[name_len] = '\0';&nbsp;//¹®ÀÚ¿­ ³¡À» 0À¸·Î ÃÊ±âÈ­<BR>&nbsp;&nbsp;arrayOfStudent[i].st_id = StudentID[i];<BR>&nbsp;&nbsp;arrayOfStudent[i].grade = rand()%8+1;&nbsp;&nbsp;&nbsp;//1~8<BR>&nbsp;&nbsp;arrayOfStudent[i].GPA = (double)(rand()%10000)/100;&nbsp;//0.00~99.99<BR>&nbsp;}<BR>}</STRONG><BR>
<STRONG>void printStudent(Student *pS, ofstream *pOf)<BR>{<BR>&nbsp;cout &lt;&lt; "St_id(" &lt;&lt; setw(4) &lt;&lt; pS-&gt;st_id &lt;&lt; "):" &lt;&lt; " Name(" &lt;&lt; pS-&gt;last_name &lt;&lt; ", " &lt;&lt; pS-&gt;first_name &lt;&lt; ") ";<BR>&nbsp;cout &lt;&lt; "grade(" &lt;&lt; pS-&gt;grade &lt;&lt; ") " &lt;&lt; "GPA(" &lt;&lt; pS-&gt;GPA &lt;&lt; ")" &lt;&lt; endl;<BR>&nbsp;*pOf &lt;&lt; "St_id(" &lt;&lt; setw(4) &lt;&lt; pS-&gt;st_id &lt;&lt; "):" &lt;&lt; " Name(" &lt;&lt; pS-&gt;last_name &lt;&lt; ", " &lt;&lt; pS-&gt;first_name &lt;&lt; ") ";<BR>&nbsp;*pOf &lt;&lt; "grade(" &lt;&lt; pS-&gt;grade &lt;&lt; ") " &lt;&lt; "GPA(" &lt;&lt; pS-&gt;GPA &lt;&lt; ")" &lt;&lt; endl;<BR>}</STRONG><BR>
<STRONG>void printStudentID(Student *pS, ofstream *pOf)<BR>{<BR>&nbsp;cout &lt;&lt; setw(8) &lt;&lt; pS-&gt;st_id &lt;&lt;",";<BR>&nbsp;*pOf &lt;&lt; setw(8) &lt;&lt; pS-&gt;st_id &lt;&lt;",";<BR>}</STRONG><BR>
<STRONG>void printArrayOfStudents(Student arrayOfStudent[], int size, ofstream *pOf)<BR>{<BR>&nbsp;cout &lt;&lt; "First 10 of total 10000 students:" &lt;&lt; endl;<BR>&nbsp;*pOf &lt;&lt; "First 10 of total 10000 students:" &lt;&lt; endl;<BR>&nbsp;for(int i = 0; i&lt;10; i++)<BR>&nbsp;{<BR>&nbsp;&nbsp;cout &lt;&lt; "St_id(" &lt;&lt; setw(4) &lt;&lt; arrayOfStudent[i].st_id &lt;&lt; "):" &lt;&lt; " Name(" &lt;&lt; arrayOfStudent[i].last_name &lt;&lt; ", " &lt;&lt; arrayOfStudent[i].first_name &lt;&lt; ") ";<BR>&nbsp;&nbsp;cout &lt;&lt; "grade(" &lt;&lt; arrayOfStudent[i].grade &lt;&lt; ") " &lt;&lt; "GPA(" &lt;&lt; arrayOfStudent[i].GPA &lt;&lt;")" &lt;&lt; endl;<BR>&nbsp;&nbsp;*pOf &lt;&lt; "St_id(" &lt;&lt; setw(4) &lt;&lt; arrayOfStudent[i].st_id &lt;&lt; "):" &lt;&lt; " Name(" &lt;&lt; arrayOfStudent[i].last_name &lt;&lt; ", " &lt;&lt; arrayOfStudent[i].first_name &lt;&lt; ") ";<BR>&nbsp;&nbsp;*pOf &lt;&lt; "grade(" &lt;&lt; arrayOfStudent[i].grade &lt;&lt; ") " &lt;&lt; "GPA(" &lt;&lt; arrayOfStudent[i].GPA &lt;&lt;")" &lt;&lt; endl;</STRONG><BR>
<STRONG>&nbsp;}<BR>&nbsp;cout &lt;&lt;endl;</STRONG><BR>
<STRONG>&nbsp;cout &lt;&lt; "Last 10 of total 10000 students:" &lt;&lt; endl;<BR>&nbsp;*pOf &lt;&lt; "Last 10 of total 10000 students:" &lt;&lt; endl;<BR>&nbsp;for(int i = size-10; i&lt;size; i++)<BR>&nbsp;{<BR>&nbsp;&nbsp;cout &lt;&lt; "St_id(" &lt;&lt; setw(4) &lt;&lt; arrayOfStudent[i].st_id &lt;&lt; "):" &lt;&lt; " Name(" &lt;&lt; arrayOfStudent[i].last_name &lt;&lt; ", " &lt;&lt; arrayOfStudent[i].first_name &lt;&lt; ") ";<BR>&nbsp;&nbsp;cout &lt;&lt; "grade(" &lt;&lt; arrayOfStudent[i].grade &lt;&lt; ") " &lt;&lt; "GPA(" &lt;&lt; arrayOfStudent[i].GPA &lt;&lt;")" &lt;&lt; endl;<BR>&nbsp;&nbsp;*pOf &lt;&lt; "St_id(" &lt;&lt; setw(4) &lt;&lt; arrayOfStudent[i].st_id &lt;&lt; "):" &lt;&lt; " Name(" &lt;&lt; arrayOfStudent[i].last_name &lt;&lt; ", " &lt;&lt; arrayOfStudent[i].first_name &lt;&lt; ") ";<BR>&nbsp;&nbsp;*pOf &lt;&lt; "grade(" &lt;&lt; arrayOfStudent[i].grade &lt;&lt; ") " &lt;&lt; "GPA(" &lt;&lt; arrayOfStudent[i].GPA &lt;&lt;")" &lt;&lt; endl;<BR>&nbsp;}<BR>&nbsp;cout &lt;&lt;endl;<BR>}</STRONG><BR>
<STRONG>void quickSortStudentArrayByID(Student arrayOfStudent[], int left, int right)<BR>{<BR>&nbsp;int pivotIndex, pivotNewIndex;</STRONG><BR>
<STRONG>&nbsp;if (right &gt; left)// subarray of 0 or 1 elements already sorted<BR>&nbsp;{<BR>&nbsp;&nbsp;pivotIndex =&nbsp; left + (right-left)/2;<BR>&nbsp;&nbsp;pivotNewIndex = partition(arrayOfStudent, left, right, pivotIndex);&nbsp;// element at pivotNewIndex is now at its final position<BR>&nbsp;&nbsp;quickSortStudentArrayByID(arrayOfStudent, left, pivotNewIndex - 1);&nbsp;// recursively sort elements on the left of pivotNewIndex<BR>&nbsp;&nbsp;quickSortStudentArrayByID(arrayOfStudent, pivotNewIndex + 1, right);&nbsp;// recursively sort elements on the right of pivotNewIndex<BR>&nbsp;}<BR>}<BR>int partition(Student arrayOfStudent[], int left, int right, int pivotIndex)<BR>{<BR>&nbsp;Student temp;<BR>&nbsp;int i, storeIndex=0;<BR>&nbsp;double pivotValue;<BR>&nbsp;pivotValue = arrayOfStudent[pivotIndex].st_id;<BR>&nbsp;temp = arrayOfStudent[pivotIndex];&nbsp;&nbsp; // ÇÇº¿À» ¸Ç ¿À¸¥ÂÊÀ¸·Î ÀÌµ¿<BR>&nbsp;arrayOfStudent[pivotIndex] = arrayOfStudent[right];<BR>&nbsp;arrayOfStudent[right] = temp;<BR>&nbsp;storeIndex = left;<BR>&nbsp;for (i = left; i&lt;= right-1; i++) // left ¡Â i &lt; right<BR>&nbsp;{<BR>&nbsp;&nbsp;if (arrayOfStudent[i].st_id &lt;= pivotValue)&nbsp;&nbsp; // i¹øÂ° °ª°ú <BR>&nbsp;&nbsp;{<BR>&nbsp;&nbsp;&nbsp;temp = arrayOfStudent[i];&nbsp;&nbsp; // ¸Ç ¿ÞÂÊ°ú Áõ°¡½ÃÅ°¸é¼­ ºñ±³<BR>&nbsp;&nbsp;&nbsp;arrayOfStudent[i] = arrayOfStudent[storeIndex];<BR>&nbsp;&nbsp;&nbsp;arrayOfStudent[storeIndex] = temp;<BR>&nbsp;&nbsp;&nbsp;storeIndex++;<BR>&nbsp;&nbsp;}<BR>&nbsp;}<BR>&nbsp;temp = arrayOfStudent[right];&nbsp;&nbsp; // storeIndex¸¦ ¸Ç ¿À¸¥ÂÊÀ¸·Î ÀÌµ¿<BR>&nbsp;arrayOfStudent[right] = arrayOfStudent[storeIndex];<BR>&nbsp;arrayOfStudent[storeIndex] = temp;<BR>&nbsp;return storeIndex;&nbsp;&nbsp; // °ª ¹ÝÈ¯ <BR>}</STRONG><BR>
<STRONG>Student * searchStudentFromArray (Student arrayOfStudent[], int size, int st_id)<BR>{<BR>&nbsp;for(int i=0;i&lt;size;i++)<BR>&nbsp;{<BR>&nbsp;&nbsp;if(arrayOfStudent[i].st_id==st_id)<BR>&nbsp;&nbsp;&nbsp;return &amp;arrayOfStudent[i];<BR>&nbsp;}<BR>&nbsp;return NULL;<BR>}</STRONG><BR>
<STRONG>void selectionSortStudentArrayByGPA_ID(Student arrayOfStudent[], int size)<BR>{<BR>&nbsp;Student temp;<BR>&nbsp;int min = 0;<BR>&nbsp;for(int i = 0; i&lt;size - 1; i++)<BR>&nbsp;{<BR>&nbsp;&nbsp;min = i;<BR>&nbsp;&nbsp;for(int j = i+1; j&lt;size; j++)<BR>&nbsp;&nbsp;{<BR>&nbsp;&nbsp;&nbsp;if(arrayOfStudent[j].GPA&gt;arrayOfStudent[min].GPA)<BR>&nbsp;&nbsp;&nbsp;&nbsp;min = j;<BR>&nbsp;&nbsp;&nbsp;else if(arrayOfStudent[j].GPA==arrayOfStudent[min].GPA)<BR>&nbsp;&nbsp;&nbsp;{<BR>&nbsp;&nbsp;&nbsp;&nbsp;if(arrayOfStudent[j].st_id&gt;arrayOfStudent[min].st_id)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;min = j;<BR>&nbsp;&nbsp;&nbsp;}<BR>&nbsp;&nbsp;}<BR>&nbsp;&nbsp;temp = arrayOfStudent[i];<BR>&nbsp;&nbsp;arrayOfStudent[i] = arrayOfStudent[min];<BR>&nbsp;&nbsp;arrayOfStudent[min] = temp;<BR>&nbsp;}<BR>}</STRONG><BR>
<STRONG>void printListOfStudents(ListOfStudents *pLS, ofstream *pOf)<BR>{<BR>&nbsp;int countN = 0;<BR>&nbsp;ListNode *pLN;&nbsp;// Ãâ·ÂÇÏ±âÀ§ÇØListNode »ý¼º<BR>&nbsp;<BR>&nbsp;pLN=pLS-&gt;pFirst;&nbsp;// pLN¿¡¸ÇÃ³À½³ëµåÀÇÁÖ¼Ò¸¦³Ö´Â´Ù.</STRONG><BR>
<STRONG>&nbsp;while ((pLN != NULL))&nbsp;// Ã³À½ºÎÅÍ¸¶Áö¸·³ëµå±îÁöwhile¹®À»µ·´Ù.<BR>&nbsp;{<BR>&nbsp;&nbsp;if(countN&lt;50)<BR>&nbsp;&nbsp;{<BR>&nbsp;&nbsp;&nbsp;printStudentID(pLN-&gt;pS,pOf);<BR>&nbsp;&nbsp;&nbsp;if(countN%10==9)<BR>&nbsp;&nbsp;&nbsp;{<BR>&nbsp;&nbsp;&nbsp;cout&lt;&lt;endl;<BR>&nbsp;&nbsp;&nbsp;*pOf&lt;&lt;endl;<BR>&nbsp;&nbsp;&nbsp;}<BR>&nbsp;&nbsp;}<BR>&nbsp;&nbsp;if(countN&gt;=9950 &amp;&amp; countN&lt;10000)<BR>&nbsp;&nbsp;{<BR>&nbsp;&nbsp;&nbsp;printStudentID(pLN-&gt;pS,pOf);<BR>&nbsp;&nbsp;&nbsp;if(countN%10==9)<BR>&nbsp;&nbsp;&nbsp;{<BR>&nbsp;&nbsp;&nbsp;cout&lt;&lt;endl;<BR>&nbsp;&nbsp;&nbsp;*pOf&lt;&lt;endl;<BR>&nbsp;&nbsp;&nbsp;}<BR>&nbsp;&nbsp;}<BR>&nbsp;&nbsp;pLN=pLN-&gt;pNext;&nbsp;// ÇöÀç³ëµå¸¦´ÙÀ½³ëµå·Î<BR>&nbsp;&nbsp;countN++;<BR>&nbsp;}<BR>&nbsp;*pOf&lt;&lt;endl;<BR>}</STRONG><BR>
<STRONG>void InsertStudentInList(ListOfStudents *pLS, Student *pNn)<BR>{<BR>&nbsp;ListNode *pN;<BR>&nbsp;pN = new ListNode;<BR>&nbsp;pN-&gt;pS=pNn;<BR>&nbsp;if(pLS-&gt;num_student==0)<BR>&nbsp;{<BR>&nbsp;&nbsp;pLS-&gt;pFirst = pLS-&gt;pLast = pN;<BR>&nbsp;&nbsp;pN-&gt;pNext=NULL;<BR>&nbsp;&nbsp;pN-&gt;pPrev=NULL;<BR>&nbsp;&nbsp;pLS-&gt;num_student++;<BR>&nbsp;}<BR>&nbsp;else if(pLS-&gt;num_student&lt;NUM_STUDENTS)<BR>&nbsp;{<BR>&nbsp;&nbsp;for(ListNode *pX = pLS-&gt;pFirst; pX!=NULL;)<BR>&nbsp;&nbsp;{<BR>&nbsp;&nbsp;&nbsp;if(pN-&gt;pS-&gt;st_id&lt;pX-&gt;pS-&gt;st_id)<BR>&nbsp;&nbsp;&nbsp;{<BR>&nbsp;&nbsp;&nbsp;&nbsp;pN-&gt;pNext = pX;<BR>&nbsp;&nbsp;&nbsp;&nbsp;pN-&gt;pPrev = pX-&gt;pPrev;<BR>&nbsp;&nbsp;&nbsp;&nbsp;if(pX!=pLS-&gt;pFirst)<BR>&nbsp;&nbsp;&nbsp;&nbsp;{<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if(pX-&gt;pPrev!=NULL)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;pX-&gt;pPrev-&gt;pNext=pN;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;pX-&gt;pPrev=pN;<BR>&nbsp;&nbsp;&nbsp;&nbsp;}<BR>&nbsp;&nbsp;&nbsp;&nbsp;else<BR>&nbsp;&nbsp;&nbsp;&nbsp;{<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;pLS-&gt;pFirst=pN;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;pN-&gt;pPrev=NULL;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;pX-&gt;pPrev=pN;<BR>&nbsp;&nbsp;&nbsp;&nbsp;}<BR>&nbsp;&nbsp;&nbsp;&nbsp;pLS-&gt;num_student++;<BR>&nbsp;&nbsp;&nbsp;&nbsp;break;<BR>&nbsp;&nbsp;&nbsp;}<BR>&nbsp;&nbsp;&nbsp;else if((pX==pLS-&gt;pLast)&amp;&amp;(pN-&gt;pS-&gt;st_id&gt;=pX-&gt;pS-&gt;st_id))<BR>&nbsp;&nbsp;&nbsp;{<BR>&nbsp;&nbsp;&nbsp;&nbsp;pN-&gt;pPrev=pX;<BR>&nbsp;&nbsp;&nbsp;&nbsp;pX-&gt;pNext=pN;<BR>&nbsp;&nbsp;&nbsp;&nbsp;pLS-&gt;pLast=pN;<BR>&nbsp;&nbsp;&nbsp;&nbsp;pN-&gt;pNext = NULL;<BR>&nbsp;&nbsp;&nbsp;&nbsp;pLS-&gt;num_student++;<BR>&nbsp;&nbsp;&nbsp;&nbsp;break;<BR>&nbsp;&nbsp;&nbsp;}<BR>&nbsp;&nbsp;&nbsp;else<BR>&nbsp;&nbsp;&nbsp;{<BR>&nbsp;&nbsp;&nbsp;&nbsp;if(pX!=pLS-&gt;pLast)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;pX = pX-&gt;pNext;<BR>&nbsp;&nbsp;&nbsp;&nbsp;else<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;break;<BR>&nbsp;&nbsp;&nbsp;}<BR>&nbsp;&nbsp;}<BR>&nbsp;}<BR>&nbsp;else<BR>&nbsp;{<BR>&nbsp;&nbsp;cout&lt;&lt;"X";<BR>&nbsp;&nbsp;cout&lt;&lt;"(NUM_STUDENTS : " &lt;&lt;NUM_STUDENTS&lt;&lt;")"&lt;&lt;endl;<BR>&nbsp;}<BR>}</STRONG><BR>
<STRONG>Student * searchStudentFromList(ListOfStudents *pLS, int id_to_search)<BR>{<BR>&nbsp;ListNode *pLN;<BR>&nbsp;pLN=pLS-&gt;pFirst;<BR>&nbsp;for(pLN; pLN!=NULL; pLN=pLN-&gt;pNext)<BR>&nbsp;{<BR>&nbsp;&nbsp;if(pLN == NULL)<BR>&nbsp;&nbsp;{<BR>&nbsp;&nbsp;&nbsp;return NULL;<BR>&nbsp;&nbsp;}<BR>&nbsp;&nbsp;else if(pLN-&gt;pS-&gt;st_id == id_to_search)<BR>&nbsp;&nbsp;{<BR>&nbsp;&nbsp;&nbsp;return pLN-&gt;pS;<BR>&nbsp;&nbsp;}<BR>&nbsp;&nbsp;else<BR>&nbsp;&nbsp;&nbsp;continue;<BR>&nbsp;}<BR>}</STRONG><BR>
<STRONG>void printTreeInOrderOfStudents(TreeNode *pST, ofstream *pOf)<BR>{<BR>&nbsp;if(pST!=NULL)<BR>&nbsp;{<BR>&nbsp;&nbsp;printTreeInOrderOfStudents(pST-&gt;pL,pOf);<BR>&nbsp;&nbsp;if(pST-&gt;pS-&gt;st_id&lt;50 || (pST-&gt;pS-&gt;st_id&gt;=9950 &amp;&amp; pST-&gt;pS-&gt;st_id&lt;10000))<BR>&nbsp;&nbsp;{<BR>&nbsp;&nbsp;&nbsp;printStudentID(pST-&gt;pS,pOf);<BR>&nbsp;&nbsp;&nbsp;if(pST-&gt;pS-&gt;st_id%10==9)<BR>&nbsp;&nbsp;&nbsp;{<BR>&nbsp;&nbsp;&nbsp;&nbsp;cout&lt;&lt;endl;<BR>&nbsp;&nbsp;&nbsp;&nbsp;*pOf&lt;&lt;endl;<BR>&nbsp;&nbsp;&nbsp;}<BR>&nbsp;&nbsp;}<BR>&nbsp;&nbsp;<BR>&nbsp;&nbsp;printTreeInOrderOfStudents(pST-&gt;pR,pOf);<BR>&nbsp;}<BR>}<BR>void insertStudentInTree(TreeNode **ppTN, Student *pSTT, ofstream *pOf)<BR>{<BR>&nbsp;if(*ppTN == NULL)<BR>&nbsp;{<BR>&nbsp;&nbsp;TreeNode *pN;<BR>&nbsp;&nbsp;pN = new TreeNode;<BR>&nbsp;&nbsp;pN-&gt;pS=pSTT;<BR>&nbsp;&nbsp;pN-&gt;pL=NULL;<BR>&nbsp;&nbsp;pN-&gt;pR=NULL;<BR>&nbsp;&nbsp;*ppTN = pN;<BR>&nbsp;}<BR>&nbsp;else if(pSTT-&gt;st_id&lt;(*ppTN)-&gt;pS-&gt;st_id)<BR>&nbsp;&nbsp;insertStudentInTree(&amp;(*ppTN)-&gt;pL,pSTT,pOf);<BR>&nbsp;else<BR>&nbsp;&nbsp;insertStudentInTree(&amp;(*ppTN)-&gt;pR,pSTT,pOf);<BR>}<BR>Student *searchStudentFromTree(TreeNode *pTN, int id_to_search)<BR>{<BR>&nbsp;if(pTN == NULL)<BR>&nbsp;{<BR>&nbsp;&nbsp;return NULL;<BR>&nbsp;}<BR>&nbsp;else if(pTN-&gt;pS-&gt;st_id == id_to_search)<BR>&nbsp;{<BR>&nbsp;&nbsp;return pTN-&gt;pS;<BR>&nbsp;}<BR>&nbsp;else if(pTN-&gt;pS-&gt;st_id &lt; id_to_search)<BR>&nbsp;{<BR>&nbsp;&nbsp;searchStudentFromTree(pTN-&gt;pR, id_to_search);<BR>&nbsp;}<BR>&nbsp;else<BR>&nbsp;{<BR>&nbsp;&nbsp;searchStudentFromTree(pTN-&gt;pL, id_to_search);<BR>&nbsp;}<BR>}</STRONG><BR>
<STRONG></STRONG>&nbsp;<BR>
&nbsp;<BR>
&nbsp;<BR>
&nbsp;<BR>
&nbsp;<BR>
&nbsp;<BR>
&nbsp;<BR>
&nbsp;<BR>
&nbsp;<BR>
&nbsp;<BR>
&nbsp;<BR>
&nbsp;<BR>
¹ÙÀÌ³Ê¸® Æ®¸®¿Í ¸µÅ©µå¸®½ºÆ®¿¡ °üÇØ¼­ ÀÌ°ÍÀú°Í ÄÚµùÇÏ´øÁßÀÔ´Ï´Ù ¤Ð<BR>
ÀÌ ¼Ò½º¿¡¼­¿ä, <SPAN style="COLOR: #ff0000">ÇÐ»ýÀÇ bigRand·Î »ý¼ºÇÑ </SPAN><SPAN style="COLOR: #ff0000">last_nameÀ» ÀÌ¿ëÇØ¼­ ¼¿·º¼Ç ¼ÒÆÃÀ» ÇÒ·Á°í ÇÏ´Âµ¥ </SPAN><BR>
¼ýÀÚ¸»°í<STRONG> ¹®ÀÚ¿­¼ÒÆÃÀ» µµ¹«Áö ¾î¶»°Ô ÇØ¾ßµÉÁö ¸ð¸£°Ù¾î¿ä</STRONG>.. ¤Ð <BR>
&nbsp;<BR>
Àú ¼Ò½º¿¡ ¾î¶²°ÍÀ» ´õ Ãß°¡ÇØ¾ßÇÏ´ÂÁö ¼Ò½ºÁ» ¾Ë·ÁÁÖ¼¼¿ä ¤Ð<BR>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    <table width=100% border='0' cellpadding='0' cellspacing='0'>
                    <tr>
                    <td align='left' valign='top'>
                                <tr>
                                    <td nowrap style="position:relative" align='left'>
<a href="http://k.daum.net/qna/qna_index.html" class="bG12">Q&A Áö½Ä</a> &gt;
<a href="http://k.daum.net/qna/list.html?category_id=QC" class="bG12">ÄÄÇ»ÅÍ,ÀÎÅÍ³Ý</a> &gt;
<a href="http://k.daum.net/qna/list.html?category_id=QCA" class="bG12">ÇÁ·Î±×·¡¹Ö</a> &gt;
                <a href="http://k.daum.net/qna/list.html?category_id=QCA001" class="bG12"><b>C,C++</b></a>
                                    </td>
                                    <td nowrap style="position:relative" align='right'>
                                                <a href="http://k.daum.net/qna/answer.html?qid=56DRN" onFocus="this.blur();"><img src="http://i2.daumcdn.net/imgsrc.search/knowledge4/2009/new/btn_rss_rely.gif" width="87" height="33" alt="´äº¯ÇÏ±â" border='0'/></a>
                                    </td>
                                </tr>
                        </table>
                    ]]>
                </description>
                <author>ºñ°ø°³´Ô</author>
                <pubDate>3 May 2013 12:58:57 GMT</pubDate>
            </item>
            <item>
                <title>Á¹¾÷ÀÛÇ° ¹®ÀÇ</title>
                <link>http://k.daum.net/qna/view.html?qid=56BiV</link>
                <category>ÄÄÇ»ÅÍ,ÀÎÅÍ³Ý > ÇÁ·Î±×·¡¹Ö > C,C++</category>
                <description>
                    <![CDATA[
                        <table width=100% cellspacing='1' cellpadding='5' border='0' bgcolor='#ffffff' style='margin-right:10px;'>
                            <tbody>
                                <tr>
                                    <td width=100% bgcolor='#ffffff'>
                                    <p></p><p style="text-align: center;"><img src="http://cfile256.uf.daum.net/image/236CDB4C518313F729DFCF" class="txc-image" hspace="1" vspace="1" border="0" actualwidth="661" width="661" style="clear:none;float:none;"  id="A_236CDB4C518313F729DFCF"/></p><p>À§ÀÇ ½Ã½ºÅÛ ±¸¼ºµµ¿¡¼­&nbsp;<br></p><p>¾î¶² ÀåÄ¡°¡ ÀÛµ¿µÇ¸é ºí·çÅõ½º ¸ðµâÀÎ FB155BC¿¡¼­ ½º¸¶Æ®¸óÀ¸·Î ¾î¶² °ªÀ» Àü¼ÛÇØÁÖ´Â</p><p>ÄÚµåºñÀü¼Ò½º¸¦ ¹®ÀÇÇÏ·Á°í ÇÕ´Ï´Ù</p><p>´äº¯ ºÎÅ¹µå¸³´Ï´Ù</p>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    <table width=100% border='0' cellpadding='0' cellspacing='0'>
                    <tr>
                    <td align='left' valign='top'>
                                <tr>
                                    <td nowrap style="position:relative" align='left'>
<a href="http://k.daum.net/qna/qna_index.html" class="bG12">Q&A Áö½Ä</a> &gt;
<a href="http://k.daum.net/qna/list.html?category_id=QC" class="bG12">ÄÄÇ»ÅÍ,ÀÎÅÍ³Ý</a> &gt;
<a href="http://k.daum.net/qna/list.html?category_id=QCA" class="bG12">ÇÁ·Î±×·¡¹Ö</a> &gt;
                <a href="http://k.daum.net/qna/list.html?category_id=QCA001" class="bG12"><b>C,C++</b></a>
                                    </td>
                                    <td nowrap style="position:relative" align='right'>
                                                <a href="http://k.daum.net/qna/answer.html?qid=56BiV" onFocus="this.blur();"><img src="http://i2.daumcdn.net/imgsrc.search/knowledge4/2009/new/btn_rss_rely.gif" width="87" height="33" alt="´äº¯ÇÏ±â" border='0'/></a>
                                    </td>
                                </tr>
                        </table>
                    ]]>
                </description>
                    <author>³Ê°¡ Â¯ÀÌ³Ä?´Ô</author>
                <pubDate>3 May 2013 01:34:34 GMT</pubDate>
            </item>
            <item>
                <title>ºñÁê¾óº£ÀÌÁ÷À¸·Î °í°´µî·ÏÄ«µå ¸¸µé¾ú´Âµ¥¿ä ¼Ò¼öÁ¡ ºÁÁÖ¼¼¿ä.Æ²¸°°÷ÀÌ ÀÖ´Ù¸é »ó¼¼È÷ ÁöÀûÁ¢ÇØÁÖ¼Å¿ä</title>
                <link>http://k.daum.net/qna/view.html?qid=566l3</link>
                <category>ÄÄÇ»ÅÍ,ÀÎÅÍ³Ý > ÇÁ·Î±×·¡¹Ö > C,C++</category>
                <description>
                    <![CDATA[
                        <table width=100% cellspacing='1' cellpadding='5' border='0' bgcolor='#ffffff' style='margin-right:10px;'>
                            <tbody>
                                <tr>
                                    <td width=100% bgcolor='#ffffff'>
                                    ºñÁê¾óº£ÀÍÁ÷ °í¼ö´Ôµé µµ¿ÍÁÖ¼¼¿ä<BR>
ºÎÅ¹µå¸³´Ï´Ù.<BR>
Á¦°¡ °í°´µî·Ï Ä«µå¸¦ ¸¸µé°í ÀÖ´Âµ¥¿ä..<BR>
¾î´ÀºÎºÐÀÌ Àß¸ðµÇ¾ù´ÂÁö ¾Ë·ÁÁÖ¼Å¿ä..<BR>
===========================================================================<BR>
Private Sub cmdexit_Click()<BR>Unload Me<BR>End Sub<BR>
Private Sub cmdinsert_Click()<BR>Dim sql As String<BR>Dim cord As String<BR><BR>If txtname.Text = "" Then<BR>MsgBox "ÀÌ¸§À» ÀÔ·ÂÇÏ¼¼¿ä", vbExclamation, "µî·Ï"<BR>Exit Sub<BR>ElseIf mtxtnum.Text = "" Then<BR>MsgBox "ÀüÈ­¹øÈ£¸¦ ÀÔ·ÂÇÏ¼¼¿ä.", vbExclamation, "µî·Ï"<BR>Exit Sub<BR>ElseIf txtaddress.Text = "" Then<BR>MsgBox "ÀüÈ­¹øÈ£ ¸¦ ÀÔ·ÂÇÏ¼¼¿ä.", vbExclamation, "µî·Ï"<BR>Exit Sub<BR>ElseIf mtxttell.Text = "" Then<BR>MsgBox "ÁÖ¼Ò¸¦ ÀÔ·ÂÇÏ¼¼¿ä.",", vbExclamation, "µî·Ï"<BR>Exit Sub<BR>ElseIf mtxttell.Text = "" Then<BR>MsgBox "¼³Ä¡ÀÏÀ»ÀÔ·ÂÇÏ¼¼¿ä.",", vbExclamation, "µî·Ï"<BR>Exit Sub<BR>ElseIf mtxtday.Text = "" Then<BR>MsgBox "¸ðµ¨¸íÀ» ÀÔ·ÂÇÏ¼¼¿ä.",", vbExclamation, "µî·Ï"<BR>Exit Sub<BR>End If<BR><BR>sql = "select * from °í°´"<BR>drsql (sql)<BR><BR>If dr.BOF = True Or dr.EOF = True Then<BR>cord = 1<BR>Else<BR>dr.MoveLast<BR>cord = dr!°í°´¹øÈ£<BR>cord = cord + 1<BR>End If<BR><BR>dr.AddNew<BR>dr!°í°´¸ítxtname.Text<BR>dr!ÀüÈ­¹øÈ£txtname.Text<BR>dr!ÀüÈ­¹øÈ£taddress.Text<BR>dr!ÁÖ¼Ò = txtname.Text<BR>dr!¼³Ä¡ÀÏ = txtday.Text<BR>dr!°í°´¹øÈ£ = cord<BR>dr.Update<BR>dr.Cancel<BR>Call textreset<BR>Call drKill<BR>End Sub<BR>
Private Sub cmdreset_Click()<BR>Call textreset<BR>End Sub<BR>
Private Sub Form_Load()<BR>Dim sql As String<BR><BR>Call FormPosition(Me)<BR>'Call dbcon<BR>'sql = "select * from °í°´"<BR>'drsql (sql)<BR>'txtname = dr!ÀÌ¸§<BR>End Sub<BR>
Private Sub Form_Unload(Cancel As Integer)<BR>'Call dbKill<BR>End Sub<BR>
<BR>
Public Sub textreset()<BR>txtname.Text = ""<BR>mtxtnum.Mask = ""<BR>mtxtnum.Text = ""<BR>mtxtnum.Mask = ""<BR>txtaddress.Text = ""<BR>mtxttell.Mask = ""<BR>mtxttell.Text = ""<BR>mtxttell.Mask = ""<BR>mtxtday.Mask = ""<BR>mtxtday.Text = ""<BR>mtxtday.Mask = ""<BR>End Sub<BR>
<BR>Private Sub Frame1_DragDrop(Source As Control, X As Single, Y As Single)<BR>
End Sub<BR>===================================================================================<BR>
<P style="TEXT-ALIGN: center"><img src="http://cfile112.uf.daum.net/image/2352B03751809A9E1174FB" class="txc-image" style="FLOAT: none; CLEAR: none" exif="{}" actualwidth="588" width="588" /><BR>
<BR>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    <table width=100% border='0' cellpadding='0' cellspacing='0'>
                    <tr>
                    <td align='left' valign='top'>
                                <tr>
                                    <td nowrap style="position:relative" align='left'>
<a href="http://k.daum.net/qna/qna_index.html" class="bG12">Q&A Áö½Ä</a> &gt;
<a href="http://k.daum.net/qna/list.html?category_id=QC" class="bG12">ÄÄÇ»ÅÍ,ÀÎÅÍ³Ý</a> &gt;
<a href="http://k.daum.net/qna/list.html?category_id=QCA" class="bG12">ÇÁ·Î±×·¡¹Ö</a> &gt;
                <a href="http://k.daum.net/qna/list.html?category_id=QCA001" class="bG12"><b>C,C++</b></a>
                                    </td>
                                    <td nowrap style="position:relative" align='right'>
                                                <a href="http://k.daum.net/qna/answer.html?qid=566l3" onFocus="this.blur();"><img src="http://i2.daumcdn.net/imgsrc.search/knowledge4/2009/new/btn_rss_rely.gif" width="87" height="33" alt="´äº¯ÇÏ±â" border='0'/></a>
                                    </td>
                                </tr>
                        </table>
                    ]]>
                </description>
                    <author>jyj777´Ô</author>
                <pubDate>1 May 2013 04:32:45 GMT</pubDate>
            </item>
            <item>
                <title>std::cout »ç¿ë ½Ã cÀÇ printf()ÀÇ ±â´É ¾²·Á¸é</title>
                <link>http://k.daum.net/qna/view.html?qid=5664F</link>
                <category>ÄÄÇ»ÅÍ,ÀÎÅÍ³Ý > ÇÁ·Î±×·¡¹Ö > C,C++</category>
                <description>
                    <![CDATA[
                        <table width=100% cellspacing='1' cellpadding='5' border='0' bgcolor='#ffffff' style='margin-right:10px;'>
                            <tbody>
                                <tr>
                                    <td width=100% bgcolor='#ffffff'>
                                    <p>std::cout »ç¿ë ½Ã cÀÇ printf()¿¡¼­ %2s¿Í °°ÀÌ Ç¥±âÀÚ¸® Á¤ÀÇÇÏ´Â ±â´É ¾²·Á¸é ¾î¶»°Ô ÇÏ³ª¿ä?</p>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    <table width=100% border='0' cellpadding='0' cellspacing='0'>
                    <tr>
                    <td align='left' valign='top'>
                                <tr>
                                    <td nowrap style="position:relative" align='left'>
<a href="http://k.daum.net/qna/qna_index.html" class="bG12">Q&A Áö½Ä</a> &gt;
<a href="http://k.daum.net/qna/list.html?category_id=QC" class="bG12">ÄÄÇ»ÅÍ,ÀÎÅÍ³Ý</a> &gt;
<a href="http://k.daum.net/qna/list.html?category_id=QCA" class="bG12">ÇÁ·Î±×·¡¹Ö</a> &gt;
                <a href="http://k.daum.net/qna/list.html?category_id=QCA001" class="bG12"><b>C,C++</b></a>
                                    </td>
                                    <td nowrap style="position:relative" align='right'>
                                                <a href="http://k.daum.net/qna/answer.html?qid=5664F" onFocus="this.blur();"><img src="http://i2.daumcdn.net/imgsrc.search/knowledge4/2009/new/btn_rss_rely.gif" width="87" height="33" alt="´äº¯ÇÏ±â" border='0'/></a>
                                    </td>
                                </tr>
                        </table>
                    ]]>
                </description>
                    <author>¹é½ÂÇö´Ô</author>
                <pubDate>30 Apr 2013 20:10:32 GMT</pubDate>
            </item>
            <item>
                <title>C¾ð¾î °í¼ö´Ôµé µµ¿ÍÁÖ¼¼¿ä  ±ÞÇØ¿ä ¤Ð¤Ð</title>
                <link>http://k.daum.net/qna/view.html?qid=55sF6</link>
                <category>ÄÄÇ»ÅÍ,ÀÎÅÍ³Ý > ÇÁ·Î±×·¡¹Ö > C,C++</category>
                <description>
                    <![CDATA[
                        <table width=100% cellspacing='1' cellpadding='5' border='0' bgcolor='#ffffff' style='margin-right:10px;'>
                            <tbody>
                                <tr>
                                    <td width=100% bgcolor='#ffffff'>
                                    <STRONG><FONT size=6>1¹ø</FONT></STRONG><BR>
#include &lt;iostream&gt;<BR>using namespace std;<BR>exch (int *a, int *b);<BR>main()<BR>{<BR>int x, y;<BR>x=1; y=2;<BR>exch(&amp;x, &amp;y);<BR>cout &lt;&lt; x &lt;&lt; " " &lt;&lt; y &lt;&lt; "\n";<BR>}<BR>exch (int *a, int *b)<BR>{<BR>int t;<BR>t= *a;<BR>*a = *b;<BR>*b = t;<BR>}<BR>
<BR>
<SPAN style="FONT-SIZE: 24pt"><STRONG>2¹ø</STRONG></SPAN><BR>
<SPAN style="FONT-SIZE: 24pt"></SPAN>#include &lt;iostream&gt;<BR>using namespace std;<BR>
f(int *g,int *h,int *i,int *j,int *k);<BR>main(){<BR>int a,b,c,d,e;<BR>a=1, b=2, c=3, d=4, e=5;<BR>f(&amp;a,&amp;b,&amp;c,&amp;d,&amp;e);<BR>cout &lt;&lt; a &lt;&lt; "+" &lt;&lt; b &lt;&lt; "+" &lt;&lt; c &lt;&lt; "+" &lt;&lt; d &lt;&lt; "=" &lt;&lt; e &lt;&lt; endl;<BR>}<BR>f(int *g,int *h,int *i,int *j,int *k){<BR>*k = *g + *h + *i + *j;<BR>return ;<BR>}<BR>
&nbsp;<BR>
À§¿¡ µÎ°³ ¼Ò½º ÁÖ¼®Á» ´Þ¾ÆÁÖ¼¼¿ä ¤Ð¤Ð<BR><BR>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    <table width=100% border='0' cellpadding='0' cellspacing='0'>
                    <tr>
                    <td align='left' valign='top'>
                                <tr>
                                    <td nowrap style="position:relative" align='left'>
<a href="http://k.daum.net/qna/qna_index.html" class="bG12">Q&A Áö½Ä</a> &gt;
<a href="http://k.daum.net/qna/list.html?category_id=QC" class="bG12">ÄÄÇ»ÅÍ,ÀÎÅÍ³Ý</a> &gt;
<a href="http://k.daum.net/qna/list.html?category_id=QCA" class="bG12">ÇÁ·Î±×·¡¹Ö</a> &gt;
                <a href="http://k.daum.net/qna/list.html?category_id=QCA001" class="bG12"><b>C,C++</b></a>
                                    </td>
                                    <td nowrap style="position:relative" align='right'>
                                                <a href="http://k.daum.net/qna/answer.html?qid=55sF6" onFocus="this.blur();"><img src="http://i2.daumcdn.net/imgsrc.search/knowledge4/2009/new/btn_rss_rely.gif" width="87" height="33" alt="´äº¯ÇÏ±â" border='0'/></a>
                                    </td>
                                </tr>
                        </table>
                    ]]>
                </description>
                <author>ºñ°ø°³´Ô</author>
                <pubDate>26 Apr 2013 04:09:52 GMT</pubDate>
            </item>
            <item>
                <title>C¾ð¾î ÇÑ¹®Á¦¸¸ Ç®¾îÁÖ¼¼¿ä Áö½Ä 100</title>
                <link>http://k.daum.net/qna/view.html?qid=55j38</link>
                <category>ÄÄÇ»ÅÍ,ÀÎÅÍ³Ý > ÇÁ·Î±×·¡¹Ö > C,C++</category>
                <description>
                    <![CDATA[
                        <table width=100% cellspacing='1' cellpadding='5' border='0' bgcolor='#ffffff' style='margin-right:10px;'>
                            <tbody>
                                <tr>
                                    <td width=100% bgcolor='#ffffff'>
                                    <p>&nbsp;f(x) = x^3+2x-3À» x=a¿¡¼­ x=b±îÁö ÀûºÐÇÏ´Â ÇÁ·Î±×·¥À» ÀÛ¼ºÇÏ½Ã¿À</p>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    <table width=100% border='0' cellpadding='0' cellspacing='0'>
                    <tr>
                    <td align='left' valign='top'>
                                <tr>
                                    <td nowrap style="position:relative" align='left'>
<a href="http://k.daum.net/qna/qna_index.html" class="bG12">Q&A Áö½Ä</a> &gt;
<a href="http://k.daum.net/qna/list.html?category_id=QC" class="bG12">ÄÄÇ»ÅÍ,ÀÎÅÍ³Ý</a> &gt;
<a href="http://k.daum.net/qna/list.html?category_id=QCA" class="bG12">ÇÁ·Î±×·¡¹Ö</a> &gt;
                <a href="http://k.daum.net/qna/list.html?category_id=QCA001" class="bG12"><b>C,C++</b></a>
                                    </td>
                                    <td nowrap style="position:relative" align='right'>
                                                <a href="http://k.daum.net/qna/answer.html?qid=55j38" onFocus="this.blur();"><img src="http://i2.daumcdn.net/imgsrc.search/knowledge4/2009/new/btn_rss_rely.gif" width="87" height="33" alt="´äº¯ÇÏ±â" border='0'/></a>
                                    </td>
                                </tr>
                        </table>
                    ]]>
                </description>
                <author>ºñ°ø°³´Ô</author>
                <pubDate>23 Apr 2013 02:14:54 GMT</pubDate>
            </item>
            <item>
                <title>c¾ð¾î °£´ÜÇÑ ¹®Á¦ ÇÏ³ª¸¸ Ç®¾îÁÖ¼¼¿ä~ Áö½Ä¸Ó´Ï 100</title>
                <link>http://k.daum.net/qna/view.html?qid=55j0e</link>
                <category>ÄÄÇ»ÅÍ,ÀÎÅÍ³Ý > ÇÁ·Î±×·¡¹Ö > C,C++</category>
                <description>
                    <![CDATA[
                        <table width=100% cellspacing='1' cellpadding='5' border='0' bgcolor='#ffffff' style='margin-right:10px;'>
                            <tbody>
                                <tr>
                                    <td width=100% bgcolor='#ffffff'>
                                    <p>&nbsp;3*3 Á¤¼öÇü Çà·ÄÀ» ¼±¾ðÇÏ°í »ç¿ëÀÚ·ÎºÎÅÍ Çà·ÄÀÇ ¿ä¼Ò¸¦ ¹Þ¾ÆµéÀÎ ÈÄ Çà·ÄÀÇ ÀüÄ¡Çà·Ä°ú ´ë°¢¿ä¼ÒÀÇ ÇÕÀ» °è»êÇÏ¿© Ãâ·ÂÇÏ´Â ÇÁ·Î±×·¥À» ÀÛ¼ºÇÏ½Ã¿ä. Çà·ÄAÀÇ ÀüÄ¡Çà·Ä &nbsp;B´Â (B)ij = (A)ji ·Î °è»ê</p>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    <table width=100% border='0' cellpadding='0' cellspacing='0'>
                    <tr>
                    <td align='left' valign='top'>
                                <tr>
                                    <td nowrap style="position:relative" align='left'>
<a href="http://k.daum.net/qna/qna_index.html" class="bG12">Q&A Áö½Ä</a> &gt;
<a href="http://k.daum.net/qna/list.html?category_id=QC" class="bG12">ÄÄÇ»ÅÍ,ÀÎÅÍ³Ý</a> &gt;
<a href="http://k.daum.net/qna/list.html?category_id=QCA" class="bG12">ÇÁ·Î±×·¡¹Ö</a> &gt;
                <a href="http://k.daum.net/qna/list.html?category_id=QCA001" class="bG12"><b>C,C++</b></a>
                                    </td>
                                    <td nowrap style="position:relative" align='right'>
                                                <a href="http://k.daum.net/qna/answer.html?qid=55j0e" onFocus="this.blur();"><img src="http://i2.daumcdn.net/imgsrc.search/knowledge4/2009/new/btn_rss_rely.gif" width="87" height="33" alt="´äº¯ÇÏ±â" border='0'/></a>
                                    </td>
                                </tr>
                        </table>
                    ]]>
                </description>
                <author>ºñ°ø°³´Ô</author>
                <pubDate>23 Apr 2013 01:58:24 GMT</pubDate>
            </item>
            <item>
                <title>c¾ð¾î  i ¹øÂ° °ªÀ» ±¸ÇÏ´Â ¹®Á¦ ÀÔ´Ï´Ù. (¸Ó´Ï °É¾î¿ä)</title>
                <link>http://k.daum.net/qna/view.html?qid=55iQV</link>
                <category>ÄÄÇ»ÅÍ,ÀÎÅÍ³Ý > ÇÁ·Î±×·¡¹Ö > C,C++</category>
                <description>
                    <![CDATA[
                        <table width=100% cellspacing='1' cellpadding='5' border='0' bgcolor='#ffffff' style='margin-right:10px;'>
                            <tbody>
                                <tr>
                                    <td width=100% bgcolor='#ffffff'>
                                    <h2>i¹øÂ° °ª 1</h2><p><br>&nbsp;</p><pre><br>Á¤¼ö nÀ» ÀÔ·Â¹Þ¾Æ ÀÔ·Â¹ÞÀº n ¸¸Å­ ÇÑ °³ÀÇ ¹è¿­¿¡ Á¤¼ö¸¦ ÀúÀåÇÏ¼¼¿ä.
±×¸®°í, ¹è¿­ÀÇ Æ¯Á¤ ÀÎµ¦½º¸¦ ÀÇ¹ÌÇÏ´Â ¼ö i¸¦ ÀÔ·Â ¹Þ¾Æ ¹è¿­ÀÇ i¹øÂ° °ªÀ» Ãâ·ÂÇÏ´Â ÇÁ·Î±×·¥À» ÀÛ¼ºÇÏ¼¼¿ä.<br></pre><p><br>&nbsp;</p><h3>Input</h3><pre>Ã¹ ¹øÂ° ÁÙ¿¡¼­´Â ÇÑ °³ÀÇ ¹è¿­¿¡¼­ ÀÔ·ÂÀ» ¹Þ´Â °³¼ö¸¦ ³ªÅ¸³»´Â Á¤¼ö n(1 &lt;= n &lt;= 1000)À» ÀÔ·Â¹Þ½À´Ï´Ù.
µÎ ¹øÂ° ÁÙ¿¡¼­´Â ¹è¿­¿¡ µé¾î°¡´Â n°³ÀÇ Á¤¼öµéÀÌ ÀÔ·ÂÀÌ µË´Ï´Ù.
¼¼ ¹øÂ° ÁÙ¿¡¼­´Â ¹è¿­ÀÇ ÀÎµ¦½º Á¤¼ö i(0 &lt;= i &lt; n)À» ÀÔ·Â¹Þ½À´Ï´Ù.
ÀÌ¶§ ÀÔ·ÂµÇ´Â Á¤¼öµéÀº Á¤¼öÀÇ ¹üÀ§¸¦ ÃÊ°úÇÏÁö ¾Ê½À´Ï´Ù.<br></pre><h3>Output</h3><pre>Ãâ·Â Çü½ÄÀº Sample Output°ú °°Àº Çü½ÄÀ» µû¸¨´Ï´Ù. 
¹è¿­ ÀÎµ¦½º i¿¡ µé¾îÀÖ´Â Á¤¼ö °ªÀ» Ãâ·ÂÇÏ°í, Ãâ·ÂÀÌ ³¡³ª¸é °³ÇàÃ³¸®¸¦ ÇØÁÝ´Ï´Ù.<br></pre><h3>Sample Input</h3><pre>5
3 2 -8 14 -45
3
</pre><h3>Sample Output</h3><pre>1
4
</pre><pre>¼Ò½º ÄÚµå ºÎÅ¹µå¸³´Ï´Ù.</pre>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    <table width=100% border='0' cellpadding='0' cellspacing='0'>
                    <tr>
                    <td align='left' valign='top'>
                                <tr>
                                    <td nowrap style="position:relative" align='left'>
<a href="http://k.daum.net/qna/qna_index.html" class="bG12">Q&A Áö½Ä</a> &gt;
<a href="http://k.daum.net/qna/list.html?category_id=QC" class="bG12">ÄÄÇ»ÅÍ,ÀÎÅÍ³Ý</a> &gt;
<a href="http://k.daum.net/qna/list.html?category_id=QCA" class="bG12">ÇÁ·Î±×·¡¹Ö</a> &gt;
                <a href="http://k.daum.net/qna/list.html?category_id=QCA001" class="bG12"><b>C,C++</b></a>
                                    </td>
                                    <td nowrap style="position:relative" align='right'>
                                                <a href="http://k.daum.net/qna/answer.html?qid=55iQV" onFocus="this.blur();"><img src="http://i2.daumcdn.net/imgsrc.search/knowledge4/2009/new/btn_rss_rely.gif" width="87" height="33" alt="´äº¯ÇÏ±â" border='0'/></a>
                                    </td>
                                </tr>
                        </table>
                    ]]>
                </description>
                <author>ºñ°ø°³´Ô</author>
                <pubDate>22 Apr 2013 16:57:45 GMT</pubDate>
            </item>
            <item>
                <title>c ¾ð¾î ÃÖ¼Ò °ø¹è¼ö ±¸ÇÏ´Â ¹®Á¦ÀÔ´Ï´Ù. (¸Ó´Ï °É¾î¿ä)</title>
                <link>http://k.daum.net/qna/view.html?qid=55iQO</link>
                <category>ÄÄÇ»ÅÍ,ÀÎÅÍ³Ý > ÇÁ·Î±×·¡¹Ö > C,C++</category>
                <description>
                    <![CDATA[
                        <table width=100% cellspacing='1' cellpadding='5' border='0' bgcolor='#ffffff' style='margin-right:10px;'>
                            <tbody>
                                <tr>
                                    <td width=100% bgcolor='#ffffff'>
                                    <h2>ÃÖ¼Ò°ø¹è¼ö</h2><pre>n°³ÀÇ Á¤¼ö¸¦ ¹è¿­¿¡ ÀúÀåÇÑ ÈÄ, ±×µéÀÇ ÃÖ¼Ò°ø¹è¼ö¸¦ Ãâ·ÂÇÏ´Â ÇÁ·Î±×·¥À» ÀÛ¼ºÇÏ¼¼¿ä. <br></pre><h3>Input</h3><pre>Ã³À½¿¡´Â ÀÔ·ÂÇÏ·Á´Â Á¤¼öÀÇ °¹¼ö¸¦ ÀÇ¹ÌÇÏ´Â Á¤¼ö nÀ» ÀÔ·Â ¹Þ½À´Ï´Ù. (2 &lt;= n &lt;= 5)<br>±× ÈÄ¿¡ n°³ÀÇ Á¤¼öµéÀ» ÀÔ·Â ¹Þ½À´Ï´Ù. ÀÔ·ÂµÇ´Â Á¤¼öµéÀº 1ÀÌ»ó 200 ÀÌÇÏ ÀÔ´Ï´Ù. <br></pre><h3>Output</h3><pre>Ãâ·Â Çü½ÄÀº Sample Output°ú °°Àº Çü½ÄÀ» µû¸¨´Ï´Ù. <br>ÀÔ·Â¹ÞÀº n°³ÀÇ Á¤¼öµéÀÇ ÃÖ¼Ò°ø¹è¼ö¸¦ Ãâ·ÂÇÕ´Ï´Ù. Ãâ·ÂÀÌ ³¡³ª¸é °³ÇàÃ³¸® ÇØÁÝ´Ï´Ù.<br></pre><h3>Sample Input</h3><pre>3<br>12 6 8<br></pre><h3>Sample Output</h3><pre>24<br></pre><pre>¼Ò½º ÄÚµå ºÎÅ¹µå¸³´Ï´Ù.</pre><p><hr width="100%" size="2" align="center"><p><!--<PRE>Author<br>¿ÀÀÏ¼®, ÀÌ¿ÕÁø ÀüºÏ´ëÇÐ±³ ÄÄÇ»ÅÍ°øÇÐ°ú</PRE>--><br><br> <br><br> <br><br> </p>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    <table width=100% border='0' cellpadding='0' cellspacing='0'>
                    <tr>
                    <td align='left' valign='top'>
                                <tr>
                                    <td nowrap style="position:relative" align='left'>
<a href="http://k.daum.net/qna/qna_index.html" class="bG12">Q&A Áö½Ä</a> &gt;
<a href="http://k.daum.net/qna/list.html?category_id=QC" class="bG12">ÄÄÇ»ÅÍ,ÀÎÅÍ³Ý</a> &gt;
<a href="http://k.daum.net/qna/list.html?category_id=QCA" class="bG12">ÇÁ·Î±×·¡¹Ö</a> &gt;
                <a href="http://k.daum.net/qna/list.html?category_id=QCA001" class="bG12"><b>C,C++</b></a>
                                    </td>
                                    <td nowrap style="position:relative" align='right'>
                                                <a href="http://k.daum.net/qna/answer.html?qid=55iQO" onFocus="this.blur();"><img src="http://i2.daumcdn.net/imgsrc.search/knowledge4/2009/new/btn_rss_rely.gif" width="87" height="33" alt="´äº¯ÇÏ±â" border='0'/></a>
                                    </td>
                                </tr>
                        </table>
                    ]]>
                </description>
                <author>ºñ°ø°³´Ô</author>
                <pubDate>22 Apr 2013 16:56:02 GMT</pubDate>
            </item>
            <item>
                <title>c ¾ð¾î  °ø¾à¼ö ¹®Á¦ ÀÔ´Ï´Ù.(¸Ó´Ï °É¾î¿ä)</title>
                <link>http://k.daum.net/qna/view.html?qid=55iQK</link>
                <category>ÄÄÇ»ÅÍ,ÀÎÅÍ³Ý > ÇÁ·Î±×·¡¹Ö > C,C++</category>
                <description>
                    <![CDATA[
                        <table width=100% cellspacing='1' cellpadding='5' border='0' bgcolor='#ffffff' style='margin-right:10px;'>
                            <tbody>
                                <tr>
                                    <td width=100% bgcolor='#ffffff'>
                                    <h2>°ø¾à¼ö Ãâ·Â1</h2><pre><br>
<br><br>Á¤¼ö n°ú k¸¦ ÀÔ·Â¹Þ¾Æ °ø¾à¼ö¸¦ Å« °ÍºÎÅÍ ÀÛÀº °Í ¼øÀ¸·Î 3°³¸¦ Ãâ·ÂÇÏ´Â ÇÁ·Î±×·¥À» ÀÛ¼ºÇÏ¼¼¿ä.
<br><br><h3>Input</h3>
µÎ °³ÀÇ Á¤¼ö n°ú k¸¦ ÀÔ·Â ¹Þ½À´Ï´Ù. ÀÌ ¶§, Á¤¼ö n°ú k´Â Á¤¼öÀÇ ¹üÀ§¸¦ ÃÊ°úÇÏÁö ¾Ê½À´Ï´Ù.<br>
<h3>Output</h3><pre>Ãâ·Â Çü½ÄÀº Sample Output°ú °°Àº Çü½ÄÀ» µû¸¨´Ï´Ù. 
ÇÑ ÁÙ¿¡ n°ú kÀÇ °ø¾à¼ö 3°³°¡ Ãâ·ÂÀÌ µË´Ï´Ù. °¢ °ø¾à¼ö »çÀÌ¿¡´Â °ø¹éÀÌ ÇÏ³ª µé¾î°©´Ï´Ù. 
Ãâ·ÂÀÌ ³¡³ª¸é °³ÇàÃ³¸®¸¦ ÇØÁÝ´Ï´Ù.
<br>(Ãâ·ÂÈùÆ® : ¸¶Áö¸· ¼ö ´ÙÀ½¿¡´Â °ø¹éÀÌ ¾Æ´Ï¶ó °³Çà¹®ÀÚ°¡ µé¾î°¡¾ß ÇÕ´Ï´Ù.)</pre>
<h3>Sample Input</h3><pre>36 24<br></pre>
<h3>Sample Output</h3><pre>12 6 4</pre>
</pre><pre>¼Ò½º ÄÚµå ºÎÅ¹µå¸³´Ï´Ù.</pre>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    <table width=100% border='0' cellpadding='0' cellspacing='0'>
                    <tr>
                    <td align='left' valign='top'>
                                <tr>
                                    <td nowrap style="position:relative" align='left'>
<a href="http://k.daum.net/qna/qna_index.html" class="bG12">Q&A Áö½Ä</a> &gt;
<a href="http://k.daum.net/qna/list.html?category_id=QC" class="bG12">ÄÄÇ»ÅÍ,ÀÎÅÍ³Ý</a> &gt;
<a href="http://k.daum.net/qna/list.html?category_id=QCA" class="bG12">ÇÁ·Î±×·¡¹Ö</a> &gt;
                <a href="http://k.daum.net/qna/list.html?category_id=QCA001" class="bG12"><b>C,C++</b></a>
                                    </td>
                                    <td nowrap style="position:relative" align='right'>
                                                <a href="http://k.daum.net/qna/answer.html?qid=55iQK" onFocus="this.blur();"><img src="http://i2.daumcdn.net/imgsrc.search/knowledge4/2009/new/btn_rss_rely.gif" width="87" height="33" alt="´äº¯ÇÏ±â" border='0'/></a>
                                    </td>
                                </tr>
                        </table>
                    ]]>
                </description>
                <author>ºñ°ø°³´Ô</author>
                <pubDate>22 Apr 2013 16:55:14 GMT</pubDate>
            </item>
            <item>
                <title>c ¾ð¾î »ç°¢Çü ±×¸®±â ¹®Á¦ÀÔ´Ï´Ù (¸Ó´Ï °É¾î¿ä)</title>
                <link>http://k.daum.net/qna/view.html?qid=55iQH</link>
                <category>ÄÄÇ»ÅÍ,ÀÎÅÍ³Ý > ÇÁ·Î±×·¡¹Ö > C,C++</category>
                <description>
                    <![CDATA[
                        <table width=100% cellspacing='1' cellpadding='5' border='0' bgcolor='#ffffff' style='margin-right:10px;'>
                            <tbody>
                                <tr>
                                    <td width=100% bgcolor='#ffffff'>
                                    <p>»ç°¢Çü ±×¸®±â2</p><pre>µÎ °³ÀÇ Á¤¼ö·Î °¡·Î¿Í ¼¼·Î±æÀÌ¸¦ ÀÔ·Â¹Þ¾Æ ¾Æ·¡¿Í °°ÀÌ Á÷»ç°¢ÇüÀ» ±×¸®´Â ÇÁ·Î±×·¥À» ÀÛ¼ºÇÏ¼¼¿ä. <br></pre><h3>Input</h3><pre>µÎ °³ÀÇ Á¤¼öwidth, height¸¦ ÀÔ·Â ¹Þ½À´Ï´Ù. width´Â °¡·Î±æÀÌ¸¦ ÀÇ¹ÌÇÏ°í height´Â<br>¼¼·Î±æÀÌ¸¦ ÀÇ¹ÌÇÕ´Ï´Ù. (1 &lt; height, 1&lt; width)<br></pre><h3>	Output</h3><pre>Ãâ·Â Çü½ÄÀº Sample Output°ú °°Àº Çü½ÄÀ» µû¸¨´Ï´Ù. <br>ÀÔ·Â¹ÞÀº width¿Í height¸¦ °¢°¢ °¡·Î±æÀÌ, ¼¼·Î±æÀÌ·Î ÇÏ´Â Á÷»ç°¢ÇüÀ» Ãâ·ÂÇÏ¼¼¿ä.<br>»ç°¢ÇüÀÇ Å×µÎ¸®´Â '*'·Î Ç¥ÇöÇÏ°í ÀÌ°Í ÇÏ³ª´Â ±æÀÌ 1À» ÀÇ¹ÌÇÕ´Ï´Ù. <br>»ç°¢ÇüÀÇ ¾ÈÂÊÀº Sample Output°ú °°ÀÌ ºñ¿öµÓ´Ï´Ù. Ãâ·ÂÀÌ ³¡³ª¸é °³ÇàÃ³¸® ÇØÁÝ´Ï´Ù.</pre><h3>Sample Input</h3><pre>10 5<br></pre><h3>	Sample Output</h3><pre>**********<br>*        *<br>*        *<br>*        *<br>**********<br></pre><pre>¼Ò½º ÄÚµå ºÎÅ¹µå¸³´Ï´Ù.</pre>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    <table width=100% border='0' cellpadding='0' cellspacing='0'>
                    <tr>
                    <td align='left' valign='top'>
                                <tr>
                                    <td nowrap style="position:relative" align='left'>
<a href="http://k.daum.net/qna/qna_index.html" class="bG12">Q&A Áö½Ä</a> &gt;
<a href="http://k.daum.net/qna/list.html?category_id=QC" class="bG12">ÄÄÇ»ÅÍ,ÀÎÅÍ³Ý</a> &gt;
<a href="http://k.daum.net/qna/list.html?category_id=QCA" class="bG12">ÇÁ·Î±×·¡¹Ö</a> &gt;
                <a href="http://k.daum.net/qna/list.html?category_id=QCA001" class="bG12"><b>C,C++</b></a>
                                    </td>
                                    <td nowrap style="position:relative" align='right'>
                                                <a href="http://k.daum.net/qna/answer.html?qid=55iQH" onFocus="this.blur();"><img src="http://i2.daumcdn.net/imgsrc.search/knowledge4/2009/new/btn_rss_rely.gif" width="87" height="33" alt="´äº¯ÇÏ±â" border='0'/></a>
                                    </td>
                                </tr>
                        </table>
                    ]]>
                </description>
                <author>ºñ°ø°³´Ô</author>
                <pubDate>22 Apr 2013 16:53:18 GMT</pubDate>
            </item>
            <item>
                <title>°úÁ¦1 È«±æµ¿ ÁÙ¸ÂÃã¿¡ ´ëÇØ¼­</title>
                <link>http://k.daum.net/qna/view.html?qid=55fXH</link>
                <category>ÄÄÇ»ÅÍ,ÀÎÅÍ³Ý > ÇÁ·Î±×·¡¹Ö > C,C++</category>
                <description>
                    <![CDATA[
                        <table width=100% cellspacing='1' cellpadding='5' border='0' bgcolor='#ffffff' style='margin-right:10px;'>
                            <tbody>
                                <tr>
                                    <td width=100% bgcolor='#ffffff'>
                                    <p>°úÁ¦1À» ÇÏ´Ùº¸¸é</p><p>&nbsp;</p><p>¦£¦¡¦¡¦¡ ¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¤</p><p>¦¢È«±æµ¿&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;¦¢</p><p>¦¢&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;010-1234-5678¦¢</p><p>¦¦¦¡¦¡ ¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¥</p><p>&nbsp;</p><p>Àú È«±æµ¿ ºÎºÐÀÌ ¹«½¼ÁþÀ»ÇØµµ ¸ÂÃçÁöÁö°¡ ¾Ê½À´Ï´Ù.</p><p>&nbsp;</p><p>#include &lt;stdio.h&gt;</p><p>void main()</p><p>{</p><p>&nbsp; system("chcp 437 &gt; nul");&nbsp; // ¸¸¾à ÇÑ±ÛÀ» Ãâ·ÂÇÏ°íÀÚ ÇÒ ¶§´Â ÀÌ ¶óÀÎÀ» ÁÖ¼® Ã³¸®</p><p>&nbsp;<br>&nbsp;<br>&nbsp; //ÇÁ¸°Æ® ½ÇÇà¹®À» ÀÌ¿ëÇÏ¿© ¸íÇÔÀ» ¿Ï¼ºÇÑ´Ù.</p><p>&nbsp; </p><p>&nbsp; system("PAUSE");</p><p>}<br></p><p>ÀÌ ¸í·É¹®Áß¿¡¼­ </p><p>"//system("chcp 437 &gt; nul"); "</p><p>ÀÌ·¸°Ô ¹Ù²î¾î µµ½ºÃ¢¿¡ ÇÑ±ÛÀ» ¶ç¿ì´Â°Ô °¡´ÉÇÞ¾úÀºµ¥</p><p>printf("%C%C%C%C%C%C%C%C%C%C%C%C\n", 0xDA, 0xC4, 0xC4,............ 0xC4,&nbsp;0xBF"&nbsp;);</p><p>ÀÌ°É ±×´ë·ÎÇÏ´Ï ÀÌ»óÇÑ À¯´ÏÄÚµå°¡ ¶ß´õ±º¿ä.....</p><p>&nbsp;</p><p>±×·¸´Ù°í ÁÖ¼®Ã³¸®¸¦ÇÏÀÚ´Ï ÇÑ±ÛÀÌ ÃÄÁöÁö ¾Ê°í....</p><p>&nbsp;</p><p>µµ´ëÃ¼ ¾î¶² ¹æ½ÄÀÌ ¸Â´Â°Ç°¡¿ä...</p>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    <table width=100% border='0' cellpadding='0' cellspacing='0'>
                    <tr>
                    <td align='left' valign='top'>
                                <tr>
                                    <td nowrap style="position:relative" align='left'>
<a href="http://k.daum.net/qna/qna_index.html" class="bG12">Q&A Áö½Ä</a> &gt;
<a href="http://k.daum.net/qna/list.html?category_id=QC" class="bG12">ÄÄÇ»ÅÍ,ÀÎÅÍ³Ý</a> &gt;
<a href="http://k.daum.net/qna/list.html?category_id=QCA" class="bG12">ÇÁ·Î±×·¡¹Ö</a> &gt;
                <a href="http://k.daum.net/qna/list.html?category_id=QCA001" class="bG12"><b>C,C++</b></a>
                                    </td>
                                    <td nowrap style="position:relative" align='right'>
                                                <a href="http://k.daum.net/qna/answer.html?qid=55fXH" onFocus="this.blur();"><img src="http://i2.daumcdn.net/imgsrc.search/knowledge4/2009/new/btn_rss_rely.gif" width="87" height="33" alt="´äº¯ÇÏ±â" border='0'/></a>
                                    </td>
                                </tr>
                        </table>
                    ]]>
                </description>
                    <author>ÀüÀçÁø´Ô</author>
                <pubDate>21 Apr 2013 14:12:41 GMT</pubDate>
            </item>
            <item>
                <title>double pointer µ¿ÀûÇÒ´ç ¹× ÇÔ¼ö »ç¿ë¹ý</title>
                <link>http://k.daum.net/qna/view.html?qid=55Zi9</link>
                <category>ÄÄÇ»ÅÍ,ÀÎÅÍ³Ý > ÇÁ·Î±×·¡¹Ö > C,C++</category>
                <description>
                    <![CDATA[
                        <table width=100% cellspacing='1' cellpadding='5' border='0' bgcolor='#ffffff' style='margin-right:10px;'>
                            <tbody>
                                <tr>
                                    <td width=100% bgcolor='#ffffff'>
                                    #include &lt;stdio.h&gt;<BR>#include &lt;stdlib.h&gt;<BR>void FF(char ***in);<BR>int main(int argc, char* argv[])<BR>{<BR>&nbsp;char ** a;<BR>&nbsp;int i=0;<BR>&nbsp;a=(char **)malloc(5*sizeof(char *));<BR>&nbsp;for(i=0;i&lt;5;i++)<BR>&nbsp;{<BR>&nbsp;&nbsp;a[i] = (char *) malloc(5*sizeof(char));<BR>&nbsp;}<BR>&nbsp;FF(&amp;a);<BR>&nbsp;return 0;<BR>}<BR>void FF(char ***in)<BR>{<BR>&nbsp;<BR>&nbsp;(*in)[3][4] = 5;<BR>}<BR>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    <table width=100% border='0' cellpadding='0' cellspacing='0'>
                    <tr>
                    <td align='left' valign='top'>
                                <tr>
                                    <td nowrap style="position:relative" align='left'>
<a href="http://k.daum.net/qna/qna_index.html" class="bG12">Q&A Áö½Ä</a> &gt;
<a href="http://k.daum.net/qna/list.html?category_id=QC" class="bG12">ÄÄÇ»ÅÍ,ÀÎÅÍ³Ý</a> &gt;
<a href="http://k.daum.net/qna/list.html?category_id=QCA" class="bG12">ÇÁ·Î±×·¡¹Ö</a> &gt;
                <a href="http://k.daum.net/qna/list.html?category_id=QCA001" class="bG12"><b>C,C++</b></a>
                                    </td>
                                    <td nowrap style="position:relative" align='right'>
                                                <a href="http://k.daum.net/qna/answer.html?qid=55Zi9" onFocus="this.blur();"><img src="http://i2.daumcdn.net/imgsrc.search/knowledge4/2009/new/btn_rss_rely.gif" width="87" height="33" alt="´äº¯ÇÏ±â" border='0'/></a>
                                    </td>
                                </tr>
                        </table>
                    ]]>
                </description>
                    <author>ideaÀçÈ¯´Ô</author>
                <pubDate>19 Apr 2013 06:56:50 GMT</pubDate>
            </item>
            <item>
                <title>visual c++ 2010 ÇÁ·Î±×·¡¹Ö ÇÏ°í ÀÖ´Âµ¥¿ä ¤Ð¤Ð¤Ð¤Ð¤Ð</title>
                <link>http://k.daum.net/qna/view.html?qid=55NUe</link>
                <category>ÄÄÇ»ÅÍ,ÀÎÅÍ³Ý > ÇÁ·Î±×·¡¹Ö > C,C++</category>
                <description>
                    <![CDATA[
                        <table width=100% cellspacing='1' cellpadding='5' border='0' bgcolor='#ffffff' style='margin-right:10px;'>
                            <tbody>
                                <tr>
                                    <td width=100% bgcolor='#ffffff'>
                                    ¹®Á¦°¡ <BR>
&nbsp;<BR>
<STRONG><SPAN style="FONT-SIZE: 14pt">'a'+1, </SPAN><SPAN style="FONT-SIZE: 14pt">'a'+2, </SPAN><SPAN style="FONT-SIZE: 14pt">'a'+3À» ¹®ÀÚ Çü½Ä(%c</SPAN><SPAN style="FONT-SIZE: 14pt">)À¸·Î Ãâ·ÂÇÏ´Â ÇÁ·Î±×·¥À» ÀÛ¼ºÇÏ¶ó.</SPAN></STRONG><BR>
&nbsp;<BR>
ÀÔ´Ï´Ù.&nbsp; ±×·¡¼­ Á¦°¡ ÇÁ·Î±×·¡¹Ö ÇÑ°Ô<BR>
&nbsp;<BR>
//¹®Á¦ 8¹ø//<BR>#include &lt;stdio.h&gt;<BR>int main(void)<BR>{<BR>&nbsp; //º¯¼ö ¼±¾ð<BR>&nbsp; char code='a'+1;<BR>&nbsp;&nbsp;&nbsp;&nbsp; char code='a'+2;<BR>&nbsp;&nbsp;&nbsp;&nbsp; char code='a'+3;<BR>
&nbsp; //Ãâ·Â<BR>&nbsp; printf("%c %c %c \n",code, code, code); <BR>
&nbsp; return 0;<BR>}<BR>
&nbsp;<BR>
&nbsp;<BR>
&nbsp;<BR>
&nbsp;<BR>
&nbsp;<BR>
ÀÌ°Çµ¥ ¿À·ù°¡ 2°³³ª ¶ß³×¿ä ¤Ð¤Ð¤Ð<BR>
¿À·ù ³»¿ëÀº<BR>
&nbsp;<BR>
E:\Program Files\Microsoft Visual Studio\MyProjects\dsgasdg\adsgasdg.c(8) : error C2374: 'code' : redefinition; multiple initialization<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; E:\Program Files\Microsoft Visual Studio\MyProjects\dsgasdg\adsgasdg.c(7) : see declaration of 'code'<BR>E:\Program Files\Microsoft Visual Studio\MyProjects\dsgasdg\adsgasdg.c(9) : error C2374: 'code' : redefinition; multiple initialization<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; E:\Program Files\Microsoft Visual Studio\MyProjects\dsgasdg\adsgasdg.c(7) : see declaration of 'code'<BR>Error executing cl.exe.<BR>
adsgasdg.obj - 2 error(s), 0 warning(s)<BR>
&nbsp;<BR>
&nbsp;<BR>
ÀÔ´Ï´Ù...<BR>
&nbsp;<BR>
¾î¶»°Ô ÇÏ¸é ÀÌ ¹®Á¦¸¦ ÇØ°á ÇÒ ¼ö ÀÖÀ»±î¿ä µµ¿ÍÁÖ¼¼¿ë!!!!<BR><BR>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    <table width=100% border='0' cellpadding='0' cellspacing='0'>
                    <tr>
                    <td align='left' valign='top'>
                                <tr>
                                    <td nowrap style="position:relative" align='left'>
<a href="http://k.daum.net/qna/qna_index.html" class="bG12">Q&A Áö½Ä</a> &gt;
<a href="http://k.daum.net/qna/list.html?category_id=QC" class="bG12">ÄÄÇ»ÅÍ,ÀÎÅÍ³Ý</a> &gt;
<a href="http://k.daum.net/qna/list.html?category_id=QCA" class="bG12">ÇÁ·Î±×·¡¹Ö</a> &gt;
                <a href="http://k.daum.net/qna/list.html?category_id=QCA001" class="bG12"><b>C,C++</b></a>
                                    </td>
                                    <td nowrap style="position:relative" align='right'>
                                                <a href="http://k.daum.net/qna/answer.html?qid=55NUe" onFocus="this.blur();"><img src="http://i2.daumcdn.net/imgsrc.search/knowledge4/2009/new/btn_rss_rely.gif" width="87" height="33" alt="´äº¯ÇÏ±â" border='0'/></a>
                                    </td>
                                </tr>
                        </table>
                    ]]>
                </description>
                <author>ºñ°ø°³´Ô</author>
                <pubDate>14 Apr 2013 14:18:42 GMT</pubDate>
            </item>
            <item>
                <title>´å³Ý 2.0À» ÀÌ¿ëÇÑ ÇÁ·Î±×·¡¹ÖÀÌ À©7¿¡¼­ ¾ÈµÉ¶§.</title>
                <link>http://k.daum.net/qna/view.html?qid=55MWg</link>
                <category>ÄÄÇ»ÅÍ,ÀÎÅÍ³Ý > ÇÁ·Î±×·¡¹Ö > C,C++</category>
                <description>
                    <![CDATA[
                        <table width=100% cellspacing='1' cellpadding='5' border='0' bgcolor='#ffffff' style='margin-right:10px;'>
                            <tbody>
                                <tr>
                                    <td width=100% bgcolor='#ffffff'>
                                    <div><h1 style="margin: 0pt; font-family: verdana; color: rgb(200, 66, 5);">QnA</h1><p style="margin: 0pt; font-family: verdana; color: rgb(200, 66, 5);">¡¡</p><table style="border: medium none; border-collapse: collapse;" class="MsoTableGrid" border="1" cellpadding="0" cellspacing="0" width="100%">&#9;<tbody><tr style="">&#9;&#9;<td style="border: 1pt solid black; padding: 0cm 5.4pt; background-color: transparent;" valign="top">&#9;&#9;<p style="margin: 0cm 0cm 0pt;">&#9;&#9;<font color="#000000" face="¸¼Àº °íµñ" size="2">»ç¿ë¾ð¾î <font color="#e31600">&#9;&#9;(Ä¥ÇØÁÖ¼¼¿ä) =&gt;</font> (C#,VB)</font></p></td>&#9;</tr>&#9;<tr style="">&#9;&#9;<td style="border-width: medium 1pt 1pt; border-style: none solid solid; border-color: rgb(212, 208, 200) black black; padding: 0cm 5.4pt; background-color: transparent;" valign="top">&#9;&#9;<p style="margin: 0cm 0cm 0pt;">&#9;&#9;<font color="#000000" face="¸¼Àº °íµñ" size="2">»ç¿ëÅø (VS) VB</font></p></td>&#9;</tr>&#9;<tr style="">&#9;&#9;<td style="border-width: medium 1pt 1pt; border-style: none solid solid; border-color: rgb(212, 208, 200) black black; padding: 0cm 5.4pt; background-color: transparent;" valign="top">&#9;&#9;<p style="margin: 0cm 0cm 0pt;">&#9;&#9;<font color="#000000" face="¸¼Àº °íµñ" size="2">¿î¿µÃ¼Á¦ (OS) :À©7</font></p></td></tr></tbody></table></div><p><br></p><p><br></p><p>´å³Ý 2.0 ¾ð¾î¸¦ »ç¿ëÇØ¼­ ºñº£·Î ¸¸µç ÇÁ·Î±×·¥ÀÌ ÀÖ´Âµ¥¿ä..</p><p><br></p><p>´å³ÝÀÌ ±×µ¿¾È ¾÷±×·¹ÀÌµð µÇ¸é¼­ ÃÖ±Ù À©7¿¡ ´å³Ý 4.0¶§ ´å³ÝÀÌ ±ò·ÁÀÖ´õ¶ó±¸¿ä.</p><p><br></p><p>xp¿¡ º¸¸é ´å³Ý 1.0 ºÎÅÍ ~4.0 extend ±îÁö ±ò·Á ÀÖ´øµ¥¿ä.</p><p>À© 7¿¡´Â ´å³Ý 4.0 Å¬¶óÀÌ¾ðÆ®¸¸ ±ò·Á ÀÌ´õ¶ó±¸¿ä</p><p><br></p><p>¹®Á¦´Â 2³âÀü¿¡ Á¦ÀÛµÈ ÇÁ·Î±×·¥ÀÎµ¥¿ä. ÀÌ°Ô xp¿¡¼­´Â Àß µ¹¾Æ°¡´Âµ¥ À©7¿¡¼­´Â Àß ÀÛµ¿ÇÏ´Ù°¡ 10Á¤µµ¸é ¸ØÃç¹ö¸®³×¿ä.</p><p><br></p><p>´å³Ý ¹öÁ¯ ¹®Á¦ÀÎÁö &nbsp;À©µµ¿ì ¼³Á¤ ¹®Á¦ÀÎµð µµ¹«Áö ¾Ë¼ö°¡ ¾ø³×¿ä ¤Ð¤Ð</p>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    <table width=100% border='0' cellpadding='0' cellspacing='0'>
                    <tr>
                    <td align='left' valign='top'>
                                <tr>
                                    <td nowrap style="position:relative" align='left'>
<a href="http://k.daum.net/qna/qna_index.html" class="bG12">Q&A Áö½Ä</a> &gt;
<a href="http://k.daum.net/qna/list.html?category_id=QC" class="bG12">ÄÄÇ»ÅÍ,ÀÎÅÍ³Ý</a> &gt;
<a href="http://k.daum.net/qna/list.html?category_id=QCA" class="bG12">ÇÁ·Î±×·¡¹Ö</a> &gt;
                <a href="http://k.daum.net/qna/list.html?category_id=QCA001" class="bG12"><b>C,C++</b></a>
                                    </td>
                                    <td nowrap style="position:relative" align='right'>
                                                <a href="http://k.daum.net/qna/answer.html?qid=55MWg" onFocus="this.blur();"><img src="http://i2.daumcdn.net/imgsrc.search/knowledge4/2009/new/btn_rss_rely.gif" width="87" height="33" alt="´äº¯ÇÏ±â" border='0'/></a>
                                    </td>
                                </tr>
                        </table>
                    ]]>
                </description>
                    <author>·çÀÌÀª¸®¾ö3¼¼´Ô</author>
                <pubDate>14 Apr 2013 06:55:36 GMT</pubDate>
            </item>
            <item>
                <title>c¾ð¾î ´õºí¸´ ´ÙÁß¹Ýº¹¹® ¸ÆÁÖÆÄÆ¼¹®Á¦</title>
                <link>http://k.daum.net/qna/view.html?qid=55MB0</link>
                <category>ÄÄÇ»ÅÍ,ÀÎÅÍ³Ý > ÇÁ·Î±×·¡¹Ö > C,C++</category>
                <description>
                    <![CDATA[
                        <table width=100% cellspacing='1' cellpadding='5' border='0' bgcolor='#ffffff' style='margin-right:10px;'>
                            <tbody>
                                <tr>
                                    <td width=100% bgcolor='#ffffff'>
                                    <DIV class=pname>ÁßÃ¸ for¹®À» °øºÎÁßÀÎµ¥¿ë,,</DIV>
<DIV class=pname>ÀÌ¹®Á¦ ÀÚ²Ù ½Ã°£ÀÌ ÆÛÀú¹ö¸®³×¿ä...</DIV>
<DIV class=pname>¹è¿­¾øÀÌ for¹®À¸·Î¸¸ Â¥·Á´Âµ¥ ½Ã°£¾È°É¸®°Ô Â¥´Â¹ý ¾øÀ»±î¿ä??</DIV>
<DIV class=pname></DIV>
<DIV class=pname></DIV>
<DIV class=pname>ÇÁ·Î±×·¥ ¸í: beer (special judge)</DIV>
<DIV class=tlimit>Á¦ÇÑ½Ã°£: 1 ÃÊ</DIV><!-- here -->
¸ÆÁÖ¸¦ ÁÁ¾ÆÇÏ´Â Å¬·´¿¡¼­ Á¤±Ô¸ðÀÓÀ» °¡Áø´Ù. ±×µéÀº ¶ß¶ß¹«¸®ÇÑ ¸ÆÁÖ¸¦ ¾ÆÁÖ ½È¾îÇÑ´Ù. ±×·¯³ª Å¬·´ÀÇ ³ÃÀå°í°¡ ³Ê¹« ÀÛ¾Æ¼­ ÃæºÐÇÑ ¾çÀÇ ¸ÆÁÖ¸¦ º¸°üÇÒ ¼ö ¾ø´Ù.<BR>
±×·¡¼­ ±×µéÀº Å« ¸ÆÁÖ Àü¿ë ³ÃÀå°í¸¦ ÁÖ¹®ÇÏ±â·Î Çß´Ù. »õ·Î¿î ³ÃÀå°í´Â a*b*c(°¡·Î*¼¼·Î*³ôÀÌ) ÀÎ Á÷À°¸éÃ¼ ¿©¾ß ÇÑ´Ù.<BR>
³Ã±â¸¦ »©¾Ñ±âÁö ¾Êµµ·Ï ³ÃÀå°íÀÇ °Ñ¸éÀûÀº °¡´ÉÇÑ ÀÛ¾Æ¾ß ÇÑ´Ù.<BR>
¿¹¸¦ µé¾î , ºÎÇÇ°¡ 12 ÀÎ ³ÃÀå°í¿©¾ß ÇÑ´Ù¸é °¡´ÉÇÑ °æ¿ì´Â<BR>
<BR>

<TABLE border=1 width=400>
<TBODY>
<TR>
<TH>ºÎÇÇ</TH>
<TH>°Ñ ¸éÀû</TH></TR>
<TR>
<TD>3 ¡¿ 2 ¡¿ 2</TD>
<TD>32</TD></TR>
<TR>
<TD>4 ¡¿ 3 ¡¿ 1</TD>
<TD>38</TD></TR>
<TR>
<TD>6 ¡¿ 2 ¡¿ 1</TD>
<TD>40</TD></TR>
<TR>
<TD>12 ¡¿ 1 ¡¿ 1</TD>
<TD>50</TD></TR></TBODY></TABLE><BR>
ÀÌ °æ¿ì °¡Àå ÁÁÀº ¼±ÅÃÀº 3 ¡¿ 2 ¡¿ 2.<BR>
ÀÌ¸¦ µµ¿Í ÁÖ´Â ÇÁ·Î±×·¥À» ÀÛ¼ºÇÏ´Â °ÍÀÌ ÀÏÀÌ´Ù.<BR>
<H4>ÀÔ·Â</H4>
ÀÔ·ÂÀ¸·Î ³ÃÀå°íÀÇ ºÎÇÇ Á¤¼ö n ÀÌ ÁÖ¾îÁø´Ù. ( 1 &lt;= n &lt;= 2 000 000 000 ) <BR>
<H4>Ãâ·Â</H4>
°Ñ ³ÐÀÌ¸¦ ÃÖ¼Ò·Î ÇÏ´Â ¼¼ Á¤¼ö a , b , c ¸¦ Ãâ·ÂÇÑ´Ù. ´äÀÌ ¿©·¯ °³ÀÎ °æ¿ì ±× Áß ÇÏ³ª ¸¸À» Ãâ·ÂÇÏ°í , Ãâ·ÂÇÏ´Â ¼ø¼­´Â Áß¿äÇÏÁö ¾Ê´Ù. <BR>
<H4>ÀÔÃâ·Â ¿¹</H4><PRE class=io>ÀÔ·Â

12

Ãâ·Â

3 2 2

ÀÔ·Â

13

Ãâ·Â

1 13 1

ÀÔ·Â

1000000 

Ãâ·Â

100 100 100 
</PRE>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    <table width=100% border='0' cellpadding='0' cellspacing='0'>
                    <tr>
                    <td align='left' valign='top'>
                                <tr>
                                    <td nowrap style="position:relative" align='left'>
<a href="http://k.daum.net/qna/qna_index.html" class="bG12">Q&A Áö½Ä</a> &gt;
<a href="http://k.daum.net/qna/list.html?category_id=QC" class="bG12">ÄÄÇ»ÅÍ,ÀÎÅÍ³Ý</a> &gt;
<a href="http://k.daum.net/qna/list.html?category_id=QCA" class="bG12">ÇÁ·Î±×·¡¹Ö</a> &gt;
                <a href="http://k.daum.net/qna/list.html?category_id=QCA001" class="bG12"><b>C,C++</b></a>
                                    </td>
                                    <td nowrap style="position:relative" align='right'>
                                                <a href="http://k.daum.net/qna/answer.html?qid=55MB0" onFocus="this.blur();"><img src="http://i2.daumcdn.net/imgsrc.search/knowledge4/2009/new/btn_rss_rely.gif" width="87" height="33" alt="´äº¯ÇÏ±â" border='0'/></a>
                                    </td>
                                </tr>
                        </table>
                    ]]>
                </description>
                    <author>tcrdltmdgns´Ô</author>
                <pubDate>14 Apr 2013 03:43:27 GMT</pubDate>
            </item>
            <item>
                <title>C¾ð¾î ±âÃÊ ¿¬½À¹®Á¦ ÇØ°áºÎÅ¹µå¸³´Ï´Ù!!!!!x100</title>
                <link>http://k.daum.net/qna/view.html?qid=55LSg</link>
                <category>ÄÄÇ»ÅÍ,ÀÎÅÍ³Ý > ÇÁ·Î±×·¡¹Ö > C,C++</category>
                <description>
                    <![CDATA[
                        <table width=100% cellspacing='1' cellpadding='5' border='0' bgcolor='#ffffff' style='margin-right:10px;'>
                            <tbody>
                                <tr>
                                    <td width=100% bgcolor='#ffffff'>
                                    <!--StartFragment--><br><P class=¹ÙÅÁ±Û>Àú´Â ´ëÇÐ»ýÀÎµ¥¿ä turbo c¶ó´Â ÇÁ·Î±×·¥À¸·Î C¾ð¾î ±âÃÊ¸¦ ¹è¿ì°íÀÖ½À´Ï´Ù<BR><br><P class=¹ÙÅÁ±Û><BR><br><P class=¹ÙÅÁ±Û>ÀÌÁ¦ Áß°£°í»çµµ ´Ù°¡¿À°í¿ä Ã¥À» Á¤µ¶À»ÇÏ°í ¿¹Á¦¹®Á¦ ÅÍº¸c·Î Å¸ÀÌÇÎµµÇØ¼­ ÀÌÇØ´Â &#46124;´Âµ¥¿ä ¿¬½À¹®Á¦¿¡¼­ Áö±Ý ²ÄÂ¦À» ¸øÇÏ°í ÀÖ½À´Ï´Ù.<BR><br><P class=¹ÙÅÁ±Û><BR><br><P class=¹ÙÅÁ±Û>Á¦¹ß µµ¿ÍÁÖ¼¼¿ä!!!!!!!!!!!!<BR><br><P class=¹ÙÅÁ±Û><BR><br><P class=¹ÙÅÁ±Û>±ÞÇØ¼­ ÀÏ´Ü »çÁøÀ¸·Î ¿Ã¸±°Ô¿ä.<BR><br><P class=¹ÙÅÁ±Û>&nbsp;<br><P style="TEXT-ALIGN: center" class=¹ÙÅÁ±Û><img src="http://cfile111.uf.daum.net/image/023CF74D51696E442D9220" class="txc-image" style="FLOAT: none; CLEAR: none" exif="{}" actualwidth="680" width="680" /><br><P class=¹ÙÅÁ±Û>&nbsp;<br><P style="TEXT-ALIGN: center" class=¹ÙÅÁ±Û><img src="http://cfile15.uf.daum.net/image/2440DF4D51696E472AFB9B" class="txc-image" style="FLOAT: none; CLEAR: none" exif="{}" actualwidth="680" width="680" /><br><P class=¹ÙÅÁ±Û>&nbsp;<br><P style="TEXT-ALIGN: center" class=¹ÙÅÁ±Û><img src="http://cfile15.uf.daum.net/image/1746774D51696E4A22FE65" class="txc-image" style="FLOAT: none; CLEAR: none" exif="{}" actualwidth="680" width="680" /><br><P class=¹ÙÅÁ±Û><BR>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    <table width=100% border='0' cellpadding='0' cellspacing='0'>
                    <tr>
                    <td align='left' valign='top'>
                                <tr>
                                    <td nowrap style="position:relative" align='left'>
<a href="http://k.daum.net/qna/qna_index.html" class="bG12">Q&A Áö½Ä</a> &gt;
<a href="http://k.daum.net/qna/list.html?category_id=QC" class="bG12">ÄÄÇ»ÅÍ,ÀÎÅÍ³Ý</a> &gt;
<a href="http://k.daum.net/qna/list.html?category_id=QCA" class="bG12">ÇÁ·Î±×·¡¹Ö</a> &gt;
                <a href="http://k.daum.net/qna/list.html?category_id=QCA001" class="bG12"><b>C,C++</b></a>
                                    </td>
                                    <td nowrap style="position:relative" align='right'>
                                                <a href="http://k.daum.net/qna/answer.html?qid=55LSg" onFocus="this.blur();"><img src="http://i2.daumcdn.net/imgsrc.search/knowledge4/2009/new/btn_rss_rely.gif" width="87" height="33" alt="´äº¯ÇÏ±â" border='0'/></a>
                                    </td>
                                </tr>
                        </table>
                    ]]>
                </description>
                    <author>¹èÇüÁØ´Ô</author>
                <pubDate>13 Apr 2013 14:41:46 GMT</pubDate>
            </item>
            <item>
                <title>Á¦°ö¼ö ÆÇº°ÇÏ±â</title>
                <link>http://k.daum.net/qna/view.html?qid=55FF1</link>
                <category>ÄÄÇ»ÅÍ,ÀÎÅÍ³Ý > ÇÁ·Î±×·¡¹Ö > C,C++</category>
                <description>
                    <![CDATA[
                        <table width=100% cellspacing='1' cellpadding='5' border='0' bgcolor='#ffffff' style='margin-right:10px;'>
                            <tbody>
                                <tr>
                                    <td width=100% bgcolor='#ffffff'>
                                    <p></p><p>Á¤¼ö nÀ» ÀÔ·Â ¹Þ¾Æ¼­ ±× ¼ö°¡ Á¦°ö¼öÀÎÁö¸¦</p><br>
<p>Á¦°ö¼öÀÎ °æ¿ì¿¡´Â ¾î¶² ¼öÀÇ Á¦°öÀÎÁö¸¦&nbsp;</p><br>
<p>Á¦°ö¼ö°¡ ¾Æ´Ñ °æ¿ì¿¡´Â Á¦°ö¼ö°¡ ¾Æ´Ï¶ó°í c¾ð¾î·Î ³ªÅ¸³»½Ã¿À&nbsp;&nbsp;</p><p><br></p><p>¹®Á¦°¡ ÀÌ·¸°Ô ³ª¿Ó´Âµ¥ Ç®´Ù°¡ Àß ¾ÈµÇ¼­ ¿Ã·Á¿ä</p><br><p></p>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    <table width=100% border='0' cellpadding='0' cellspacing='0'>
                    <tr>
                    <td align='left' valign='top'>
                                <tr>
                                    <td nowrap style="position:relative" align='left'>
<a href="http://k.daum.net/qna/qna_index.html" class="bG12">Q&A Áö½Ä</a> &gt;
<a href="http://k.daum.net/qna/list.html?category_id=QC" class="bG12">ÄÄÇ»ÅÍ,ÀÎÅÍ³Ý</a> &gt;
<a href="http://k.daum.net/qna/list.html?category_id=QCA" class="bG12">ÇÁ·Î±×·¡¹Ö</a> &gt;
                <a href="http://k.daum.net/qna/list.html?category_id=QCA001" class="bG12"><b>C,C++</b></a>
                                    </td>
                                    <td nowrap style="position:relative" align='right'>
                                                <a href="http://k.daum.net/qna/answer.html?qid=55FF1" onFocus="this.blur();"><img src="http://i2.daumcdn.net/imgsrc.search/knowledge4/2009/new/btn_rss_rely.gif" width="87" height="33" alt="´äº¯ÇÏ±â" border='0'/></a>
                                    </td>
                                </tr>
                        </table>
                    ]]>
                </description>
                <author>ºñ°ø°³´Ô</author>
                <pubDate>12 Apr 2013 12:26:03 GMT</pubDate>
            </item>
            <item>
                <title>c¾ð¾î Áú¹®µå¸³´Ï´Ù.</title>
                <link>http://k.daum.net/qna/view.html?qid=55Ez3</link>
                <category>ÄÄÇ»ÅÍ,ÀÎÅÍ³Ý > ÇÁ·Î±×·¡¹Ö > C,C++</category>
                <description>
                    <![CDATA[
                        <table width=100% cellspacing='1' cellpadding='5' border='0' bgcolor='#ffffff' style='margin-right:10px;'>
                            <tbody>
                                <tr>
                                    <td width=100% bgcolor='#ffffff'>
                                    <p><br></p><p style="text-align: center;"><img src="http://cfile15.uf.daum.net/image/27239B4B516682082C091A" class="txc-image" actualwidth="650" width="650" exif="{}" style="clear:none;float:none;" /></p><p><span style="background-color: rgb(255, 255, 255); font-family: Gulim, AppleGothic; font-size: 10pt; line-height: 1.7;">ÀÌ 2¹®Á¦ Á» Ç®¾îÁÖ¼¼¿ä!!! µÎ¹øÂ° ¹®Á¦ ³¡¿¡ ¾Èº¸ÀÌ´Â°Å´Â ¿¬»êÀÚ&lt;&lt;&lt;,&gt;&gt;&gt; ÀÔ´Ï´Ù</span></p>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    <table width=100% border='0' cellpadding='0' cellspacing='0'>
                    <tr>
                    <td align='left' valign='top'>
                                <tr>
                                    <td nowrap style="position:relative" align='left'>
<a href="http://k.daum.net/qna/qna_index.html" class="bG12">Q&A Áö½Ä</a> &gt;
<a href="http://k.daum.net/qna/list.html?category_id=QC" class="bG12">ÄÄÇ»ÅÍ,ÀÎÅÍ³Ý</a> &gt;
<a href="http://k.daum.net/qna/list.html?category_id=QCA" class="bG12">ÇÁ·Î±×·¡¹Ö</a> &gt;
                <a href="http://k.daum.net/qna/list.html?category_id=QCA001" class="bG12"><b>C,C++</b></a>
                                    </td>
                                    <td nowrap style="position:relative" align='right'>
                                                <a href="http://k.daum.net/qna/answer.html?qid=55Ez3" onFocus="this.blur();"><img src="http://i2.daumcdn.net/imgsrc.search/knowledge4/2009/new/btn_rss_rely.gif" width="87" height="33" alt="´äº¯ÇÏ±â" border='0'/></a>
                                    </td>
                                </tr>
                        </table>
                    ]]>
                </description>
                    <author>¶ËÃ¶´Ô´Ô</author>
                <pubDate>11 Apr 2013 09:29:31 GMT</pubDate>
            </item>
            <item>
                <title>PacketGetAdapterNames ÇÔ¼ö ¾È¾²°í ÆÐÅ¶ÀÌ¸§ ºÒ·¯¿Ã¼ö ÀÖ³ª¿ä??</title>
                <link>http://k.daum.net/qna/view.html?qid=55Dyz</link>
                <category>ÄÄÇ»ÅÍ,ÀÎÅÍ³Ý > ÇÁ·Î±×·¡¹Ö > C,C++</category>
                <description>
                    <![CDATA[
                        <table width=100% cellspacing='1' cellpadding='5' border='0' bgcolor='#ffffff' style='margin-right:10px;'>
                            <tbody>
                                <tr>
                                    <td width=100% bgcolor='#ffffff'>
                                    <p>PacketGetAdapterNamesÇÔ¼ö¸¦ ¾µ·Á¸é</p><p>°è¼Ó ¸µÅ·¿¡·¯ ³ª¼­ Àú°Å ¾øÀÌ ¾î¶»°Ô ÇÒ ¹æ¹ýÀ» Ã£´Âµ¥</p><p>Áö½ÄÀº ºÎÁ·ÇÏ°í ¤Ð¤Ð</p><p><br></p><p>ÄÄÇ»ÅÍ°øÇÐ°ú 3ÇÐ³â»ýÀÎµ¥ Àú°Å ÇÏ³ª °É·Á¼­ ipc°úÁ¦¸¦ ¸øÇÏ°í ÀÖ´Âµ¥ µµ¿ÍÁÖ¼¼¿ä ¤Ð¤Ð</p>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    <table width=100% border='0' cellpadding='0' cellspacing='0'>
                    <tr>
                    <td align='left' valign='top'>
                                <tr>
                                    <td nowrap style="position:relative" align='left'>
<a href="http://k.daum.net/qna/qna_index.html" class="bG12">Q&A Áö½Ä</a> &gt;
<a href="http://k.daum.net/qna/list.html?category_id=QC" class="bG12">ÄÄÇ»ÅÍ,ÀÎÅÍ³Ý</a> &gt;
<a href="http://k.daum.net/qna/list.html?category_id=QCA" class="bG12">ÇÁ·Î±×·¡¹Ö</a> &gt;
                <a href="http://k.daum.net/qna/list.html?category_id=QCA001" class="bG12"><b>C,C++</b></a>
                                    </td>
                                    <td nowrap style="position:relative" align='right'>
                                                <a href="http://k.daum.net/qna/answer.html?qid=55Dyz" onFocus="this.blur();"><img src="http://i2.daumcdn.net/imgsrc.search/knowledge4/2009/new/btn_rss_rely.gif" width="87" height="33" alt="´äº¯ÇÏ±â" border='0'/></a>
                                    </td>
                                </tr>
                        </table>
                    ]]>
                </description>
                    <author>ÃÖÇÑ½Ä´Ô</author>
                <pubDate>11 Apr 2013 03:23:11 GMT</pubDate>
            </item>
            <item>
                <title>c¾ð¾î Áú¹®µå¸³´Ï´Ù</title>
                <link>http://k.daum.net/qna/view.html?qid=55CGc</link>
                <category>ÄÄÇ»ÅÍ,ÀÎÅÍ³Ý > ÇÁ·Î±×·¡¹Ö > C,C++</category>
                <description>
                    <![CDATA[
                        <table width=100% cellspacing='1' cellpadding='5' border='0' bgcolor='#ffffff' style='margin-right:10px;'>
                            <tbody>
                                <tr>
                                    <td width=100% bgcolor='#ffffff'>
                                    <p><br></p><p style="text-align: center;"><img src="http://cfile111.uf.daum.net/image/18276A3351654B501C90C1" class="txc-image" actualwidth="650" width="650" exif="{}" style="clear:none;float:none;" /></p><p>ÀÌ 2¹®Á¦ Á» Ç®¾îÁÖ¼¼¿ä!!! µÎ¹øÂ° ¹®Á¦ ³¡¿¡ ¾Èº¸ÀÌ´Â°Å´Â ¿¬»êÀÚ&lt;&lt;&lt;,&gt;&gt;&gt; ÀÔ´Ï´Ù&nbsp;<br></p>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    <table width=100% border='0' cellpadding='0' cellspacing='0'>
                    <tr>
                    <td align='left' valign='top'>
                                <tr>
                                    <td nowrap style="position:relative" align='left'>
<a href="http://k.daum.net/qna/qna_index.html" class="bG12">Q&A Áö½Ä</a> &gt;
<a href="http://k.daum.net/qna/list.html?category_id=QC" class="bG12">ÄÄÇ»ÅÍ,ÀÎÅÍ³Ý</a> &gt;
<a href="http://k.daum.net/qna/list.html?category_id=QCA" class="bG12">ÇÁ·Î±×·¡¹Ö</a> &gt;
                <a href="http://k.daum.net/qna/list.html?category_id=QCA001" class="bG12"><b>C,C++</b></a>
                                    </td>
                                    <td nowrap style="position:relative" align='right'>
                                                <a href="http://k.daum.net/qna/answer.html?qid=55CGc" onFocus="this.blur();"><img src="http://i2.daumcdn.net/imgsrc.search/knowledge4/2009/new/btn_rss_rely.gif" width="87" height="33" alt="´äº¯ÇÏ±â" border='0'/></a>
                                    </td>
                                </tr>
                        </table>
                    ]]>
                </description>
                    <author>¶ËÃ¶´Ô´Ô</author>
                <pubDate>10 Apr 2013 11:24:05 GMT</pubDate>
            </item>
            <item>
                <title>c++°úÁ¦°¡ ³Ê¹« ¾î·Æ³×¿ä..°íÅë¹Þ°íÀÖ½À´Ï´Ù »ì·ÁÁÖ¼¼¿ä</title>
                <link>http://k.daum.net/qna/view.html?qid=55Brt</link>
                <category>ÄÄÇ»ÅÍ,ÀÎÅÍ³Ý > ÇÁ·Î±×·¡¹Ö > C,C++</category>
                <description>
                    <![CDATA[
                        <table width=100% cellspacing='1' cellpadding='5' border='0' bgcolor='#ffffff' style='margin-right:10px;'>
                            <tbody>
                                <tr>
                                    <td width=100% bgcolor='#ffffff'>
                                    <STRONG><SPAN style="FONT-SIZE: 14pt">1.&nbsp;(a)¿¡¼­ ±¸¹®¿À·ù(syntax error)¸¦ ¼öÁ¤ÇÏ°í (b)¿¡¼­ ³í¸® ¿À·ù(logic error)¸¦ ¹Ù·Î ÀâÀ¸¶ó.</SPAN></STRONG><BR>
&nbsp;<BR>
<SPAN style="FONT-SIZE: 18pt"><STRONG>(a)</STRONG></SPAN><BR>
<IMG style="WIDTH: 361px; HEIGHT: 247px" src="http://kinimage.naver.net/20130410_238/1365583513385vPXkh_JPEG/2.JPG" width=620 height=387><BR>
<SPAN style="FONT-SIZE: 18pt"><STRONG>(b)</STRONG></SPAN><BR>
<IMG style="WIDTH: 302px; HEIGHT: 310px" src="http://kinimage.naver.net/20130410_114/13655835135180KcYh_JPEG/1.JPG" width=620 height=465><BR>
&nbsp;<BR>
&nbsp;<BR>
&nbsp;<BR>
<SPAN style="FONT-SIZE: 14pt"><STRONG>2. ´ÙÀ½ ÇÁ·Î±×·¥ÀÇ Ãâ·ÂÀ» ±¸ÇÏ¿©¶ó.</STRONG></SPAN><BR>
<SPAN style="FONT-SIZE: 14pt"><IMG style="WIDTH: 570px; HEIGHT: 375px" src="http://kinimage.naver.net/20130410_160/1365583828895LDvLT_JPEG/3.JPG" width=620 height=427>&nbsp;</SPAN><BR>
<SPAN style="FONT-SIZE: 14pt"><STRONG>(c)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (d)</STRONG></SPAN><BR>
<SPAN style="FONT-SIZE: 14pt"><STRONG></STRONG></SPAN>&nbsp;<BR>
<SPAN style="FONT-SIZE: 14pt"><STRONG></STRONG></SPAN>&nbsp;<BR>
<SPAN style="FONT-SIZE: 14pt"><STRONG>1.</STRONG><FONT size=4>(a)¿Í (b) ÀÇ ¿¡·¯¸¦ ¼öÁ¤ÇÏ¿© ´Ù½Ã ÀÛ¼ºÇÒ°Í<BR>ÇÊ¿äÇÑ °æ¿ì º¯¼öµµ ¼±¾ðÇÒ °Í. º¸°í¼­¿¡ ¾î¶² ºÎºÐÀ» ¿Ö ¼öÁ¤Çß´Ù´Â °ÍÀ» ¼³¸íÇÒ°Í.</FONT><BR></SPAN><SPAN style="FONT-SIZE: 14pt"><STRONG>2.</STRONG><FONT size=4>4°³ÀÇ ÇÁ·Î±×·¥À» ÀÛ¼ºÇÏ¿© °á°ú¸¦ Ã·ºÎÇÒ°Í.<BR>°á°ú°¡ ¿Ö ÀÌ·¸°Ô ³ª¿À´ÂÁö ¼³¸íÀ» Ã·ºÎÇÒ°Í.</FONT></SPAN><BR>
<SPAN style="FONT-SIZE: 14pt"></SPAN>&nbsp;<BR>
<SPAN style="FONT-SIZE: 14pt"><STRONG>º¸°í¼­¸¦ ÀÛ¼ºÇØ¾ßÇØ¼­ ±ò²ûÇÏ°Ô ´äº¯ÇØÁÖ½Ã¸é ¸Å¿ì °¨»çÇÏ°Ú½À´Ï´Ù ÇìÇì..</STRONG></SPAN><BR>
&nbsp;<BR>
&nbsp;<BR>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    <table width=100% border='0' cellpadding='0' cellspacing='0'>
                    <tr>
                    <td align='left' valign='top'>
                                <tr>
                                    <td nowrap style="position:relative" align='left'>
<a href="http://k.daum.net/qna/qna_index.html" class="bG12">Q&A Áö½Ä</a> &gt;
<a href="http://k.daum.net/qna/list.html?category_id=QC" class="bG12">ÄÄÇ»ÅÍ,ÀÎÅÍ³Ý</a> &gt;
<a href="http://k.daum.net/qna/list.html?category_id=QCA" class="bG12">ÇÁ·Î±×·¡¹Ö</a> &gt;
                <a href="http://k.daum.net/qna/list.html?category_id=QCA001" class="bG12"><b>C,C++</b></a>
                                    </td>
                                    <td nowrap style="position:relative" align='right'>
                                                <a href="http://k.daum.net/qna/answer.html?qid=55Brt" onFocus="this.blur();"><img src="http://i2.daumcdn.net/imgsrc.search/knowledge4/2009/new/btn_rss_rely.gif" width="87" height="33" alt="´äº¯ÇÏ±â" border='0'/></a>
                                    </td>
                                </tr>
                        </table>
                    ]]>
                </description>
                    <author>-_-±Í¿°µÕÀÌ-_-´Ô</author>
                <pubDate>10 Apr 2013 09:20:53 GMT</pubDate>
            </item>
            <item>
                <title>°ö¼À±â °ü·Ã ÄÚµåÀÎµ¥ µµ¿ÍÁÖ¼¼¿ä....</title>
                <link>http://k.daum.net/qna/view.html?qid=555Lg</link>
                <category>ÄÄÇ»ÅÍ,ÀÎÅÍ³Ý > ÇÁ·Î±×·¡¹Ö > C,C++</category>
                <description>
                    <![CDATA[
                        <table width=100% cellspacing='1' cellpadding='5' border='0' bgcolor='#ffffff' style='margin-right:10px;'>
                            <tbody>
                                <tr>
                                    <td width=100% bgcolor='#ffffff'>
                                    <p style="text-align: justify;">¾È³çÇÏ¼¼¿ä ¾îÁ¦ 32x32 °ü·ÃÁú¹® ¿Ã¸° ÇÐ»ýÀÔ´Ï´Ù...<br></p><p style="text-align: justify;"><br></p><p style="text-align: justify;">Áö±ÝÀº ÀÏ´Ü 8x8¿¡ ÁýÁßÇÏ°í ÀÖ½À´Ï´Ù....Á¦°¡ ÃÊº¸¶ó¼­ Àü¹®°¡ÀÇ µµ¿òÀÌ ÇÊ¿äÇØ¼­ ÀÌ·¸°Ô ±Û ¿Ã¸³´Ï´Ù..</p><p style="text-align: justify;"><br></p><p style="text-align: justify;">ÀÏ´Ü 4x4´Â Àß ÀÛµ¿ÇÏ°í ÀÖ½À´Ï´Ù..</p><p style="text-align: justify;"><br></p><p style="text-align: justify;">ab * cd = ac + (ad+bc) + bd ¸¦ º£ÀÌ½º·Î ±¸ÇöÇÏ´ÂÁßÀÔ´Ï´Ù.</p><p style="text-align: justify;"><br></p><p style="text-align: justify;">--------------------------------------------------------------------</p><p style="text-align: justify;"><span style="font-size: 9pt; line-height: 1.6;">module mult8x8 (clk_53, St_53, Mcand_53, Mplier_53, Prod_53, done_53);</span><span class="Apple-tab-span" style="font-size: 9pt; line-height: 1.6; white-space: pre;">&#9;&#9;</span></p><p style="text-align: justify;"><br></p><p style="text-align: justify;">input clk_53, St_53;<span class="Apple-tab-span" style="white-space:pre">&#9;&#9;</span></p><p style="text-align: justify;">input [7:0] Mcand_53, Mplier_53; <span class="Apple-tab-span" style="white-space:pre">&#9;&#9;</span>// 4bits multiplicant and multiplier</p><p style="text-align: justify;"><br></p><p style="text-align: justify;">//reg [7:0] Mcand_53, Mplier_53;&nbsp;</p><p style="text-align: justify;"><br></p><p style="text-align: justify;">reg [3:0] first_Mcand_53, first_Mplier_53;</p><p style="text-align: justify;">reg [3:0] second_Mcand_53, second_Mplier_53;</p><p style="text-align: justify;"><br></p><p style="text-align: justify;"><br></p><p style="text-align: justify;">output [15:0] Prod_53;</p><p style="text-align: justify;">reg [15:0] Prod_53;<span class="Apple-tab-span" style="white-space:pre">&#9;&#9;</span>// product is 8bits</p><p style="text-align: justify;">output done_53;</p><p style="text-align: justify;"><br></p><p style="text-align: justify;">reg [15:0] bd_Prod_53;</p><p style="text-align: justify;">reg [15:0] ad_Prod_53;</p><p style="text-align: justify;">reg [15:0] bc_Prod_53;</p><p style="text-align: justify;">reg [15:0] ac_Prod_53;</p><p style="text-align: justify;"><span class="Apple-tab-span" style="white-space:pre">&#9;&#9;&#9;</span></p><p style="text-align: justify;"><br></p><p style="text-align: justify;"><br></p><p style="text-align: justify;">always @ (Mcand_53)<span class="Apple-tab-span" style="white-space:pre">&#9;&#9;</span>//up part</p><p style="text-align: justify;">begin</p><p style="text-align: justify;">first_Mcand_53 &lt;= Mcand_53 [7:4];</p><p style="text-align: justify;">second_Mcand_53 &lt;= Mcand_53 [3:0];&nbsp;</p><p style="text-align: justify;">//Mcand split into two parts</p><p style="text-align: justify;">end</p><p style="text-align: justify;"><span class="Apple-tab-span" style="white-space:pre">&#9;&#9;&#9;</span></p><p style="text-align: justify;"><span class="Apple-tab-span" style="white-space:pre">&#9;&#9;&#9;</span></p><p style="text-align: justify;"><span class="Apple-tab-span" style="white-space:pre">&#9;&#9;&#9;</span></p><p style="text-align: justify;">always @ (Mplier_53)<span class="Apple-tab-span" style="white-space:pre">&#9;&#9;</span>//down part</p><p style="text-align: justify;"><span style="font-size: 9pt; line-height: 1.6;">begin</span><span style="font-size: 9pt; line-height: 1.6;"> &nbsp; &nbsp;</span><span style="font-size: 9pt; line-height: 1.6;">/</span><span style="font-size: 9pt; line-height: 1.6;">/ Mplier split into two parts</span></p><p style="text-align: justify;">first_Mplier_53 &lt;= Mplier_53[7:4];</p><p style="text-align: justify;">second_Mplier_53 &lt;= Mplier_53[3:0];</p><p style="text-align: justify;"><br></p><p style="text-align: justify;"><span style="font-size: 9pt; line-height: 1.6;">always @ (posedge done_53)</span></p><p style="text-align: justify;"><span style="font-size: 9pt; line-height: 1.6;"></span><span style="font-size: 9pt; line-height: 1.6;">begin</span></p><p style="text-align: justify;"><br></p><p style="text-align: justify;">//bd_Prod_53 ;</p><p style="text-align: justify;">ad_Prod_53<span class="Apple-tab-span" style="white-space:pre">&#9;</span>=<span class="Apple-tab-span" style="white-space:pre">&#9;</span>ad_Prod_53 &lt;&lt; 4; &nbsp;<span class="Apple-tab-span" style="white-space:pre">&#9;&#9;&#9;</span>//shifted by 4 to the left</p><p style="text-align: justify;">bc_Prod_53<span class="Apple-tab-span" style="white-space:pre">&#9;</span>=<span class="Apple-tab-span" style="white-space:pre">&#9;</span>bc_Prod_53 &lt;&lt; 4;</p><p style="text-align: justify;">ac_Prod_53<span class="Apple-tab-span" style="white-space:pre">&#9;</span>=<span class="Apple-tab-span" style="white-space:pre">&#9;</span>ac_Prod_53 &lt;&lt; 8;</p><p style="text-align: justify;"><br></p><p style="text-align: justify;">Prod_53 = ac_Prod_53 | bc_Prod_53| ad_Prod_53| bd_Prod_53;</p><p style="text-align: justify;">&nbsp;</p><p style="text-align: justify;">end</p><p style="text-align: justify;"><br></p><p style="text-align: justify;">mult4x4 u1 (clk_53,St_53,b_Mcand_53,d_Mplier_53,bd_Prod_53,done_53);</p><p style="text-align: justify;"><br></p><p style="text-align: justify;">mult4x4 u2 (clk_53,St_53,a_Mcand_53,c_Mplier_53,ac_Prod_53,done_53);</p><p style="text-align: justify;"><br></p><p style="text-align: justify;">mult4x4 u3 (clk_53,St_53,b_Mcand_53,c_Mplier_53,bc_Prod_53,done_53);</p><p style="text-align: justify;"><br></p><p style="text-align: justify;">mult4x4 u4 (clk_53,St_53,a_Mcand_53,c_Mplier_53,ac_Prod_53,done_53);</p><p style="text-align: justify;"><br></p><p style="text-align: justify;">//use the module of mult4x4</p><p style="text-align: justify;"><br></p><p style="text-align: justify;">endmodule</p><div style="text-align: justify;"><br></div><div style="text-align: justify;"><br></div><div style="text-align: justify;">----------------------------------------------------------------------------------------------</div><div style="text-align: justify;"><br></div><div style="text-align: justify;">¹¹°¡ ¹®Á¦ÀÏ±î¿ä? µµ¿ÍÁÖ¼¼¿ä<br></div><p></p>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    <table width=100% border='0' cellpadding='0' cellspacing='0'>
                    <tr>
                    <td align='left' valign='top'>
                                <tr>
                                    <td nowrap style="position:relative" align='left'>
<a href="http://k.daum.net/qna/qna_index.html" class="bG12">Q&A Áö½Ä</a> &gt;
<a href="http://k.daum.net/qna/list.html?category_id=QC" class="bG12">ÄÄÇ»ÅÍ,ÀÎÅÍ³Ý</a> &gt;
<a href="http://k.daum.net/qna/list.html?category_id=QCA" class="bG12">ÇÁ·Î±×·¡¹Ö</a> &gt;
                <a href="http://k.daum.net/qna/list.html?category_id=QCA001" class="bG12"><b>C,C++</b></a>
                                    </td>
                                    <td nowrap style="position:relative" align='right'>
                                                <a href="http://k.daum.net/qna/answer.html?qid=555Lg" onFocus="this.blur();"><img src="http://i2.daumcdn.net/imgsrc.search/knowledge4/2009/new/btn_rss_rely.gif" width="87" height="33" alt="´äº¯ÇÏ±â" border='0'/></a>
                                    </td>
                                </tr>
                        </table>
                    ]]>
                </description>
                    <author>TOEFLÂ¯´Ô</author>
                <pubDate>7 Apr 2013 20:05:25 GMT</pubDate>
            </item>
            <item>
                <title>c¾ð¾î ÄÚµå¸¦ Â®´Âµ¥ °á°ú°ú ¿Ö ¾²·¹±â°ªÀÌ ¶ßÁÒ? ¤Ð¤Ð</title>
                <link>http://k.daum.net/qna/view.html?qid=553hz</link>
                <category>ÄÄÇ»ÅÍ,ÀÎÅÍ³Ý > ÇÁ·Î±×·¡¹Ö > C,C++</category>
                <description>
                    <![CDATA[
                        <table width=100% cellspacing='1' cellpadding='5' border='0' bgcolor='#ffffff' style='margin-right:10px;'>
                            <tbody>
                                <tr>
                                    <td width=100% bgcolor='#ffffff'>
                                    <p><p><p>#include &lt;stdio.h&gt;</p><p>#include &lt;stdlib.h&gt;</p><p>void multi_poly(int n,int *rx);</p><p>void fill_poly(int *px,int *qx,int n);</p><p><br></p><p><br></p><p>int main()</p><p>{</p><p><span class="Apple-tab-span" style="white-space:pre">	</span>int i;</p><p><span class="Apple-tab-span" style="white-space:pre">	</span>int *rx;</p><p><span class="Apple-tab-span" style="white-space:pre">	</span>int n;</p><p><span class="Apple-tab-span" style="white-space:pre">	</span>printf("ÃÖ°íÂ÷Ç×¼ö¸¦ ÀÔ·ÂÇÏ½Ã¿À.");</p><p><span class="Apple-tab-span" style="white-space:pre">	</span>scanf("%d",&amp;n);</p><p><span class="Apple-tab-span" style="white-space:pre">	</span>n=n+1;</p><p><span class="Apple-tab-span" style="white-space:pre">	</span>rx=(int *)malloc(sizeof (int)*(n*2));</p><p><span class="Apple-tab-span" style="white-space:pre">	</span>multi_poly(n,rx);</p><p><span class="Apple-tab-span" style="white-space:pre">	</span>for(i=(n-1)*2;i&gt;=0;i--)</p><p><span class="Apple-tab-span" style="white-space:pre">	</span>{</p><p><span class="Apple-tab-span" style="white-space:pre">		</span>if(i==0)</p><p><span class="Apple-tab-span" style="white-space:pre">		</span>{</p><p><span class="Apple-tab-span" style="white-space:pre">			</span>printf("»ó¼öÀÇ ÇÕ : %d\n",rx[i]);</p><p><span class="Apple-tab-span" style="white-space:pre">			</span>break;</p><p><span class="Apple-tab-span" style="white-space:pre">		</span>}</p><p><span class="Apple-tab-span" style="white-space:pre">		</span>printf("%dÂ÷ °è¼öÀÇ ÇÕ : %d\n",i,rx[i]);</p><p><span class="Apple-tab-span" style="white-space:pre">	</span>}</p><p><span class="Apple-tab-span" style="white-space:pre">	</span>printf("´õÇØÁø ´ÙÇ×½Ä : ");</p><p><span class="Apple-tab-span" style="white-space:pre">	</span>for(i=(n-1)*2;i&gt;=0;i--)</p><p><span class="Apple-tab-span" style="white-space:pre">	</span>{</p><p><span class="Apple-tab-span" style="white-space:pre">		</span>if(i==0)</p><p><span class="Apple-tab-span" style="white-space:pre">		</span>{</p><p><span class="Apple-tab-span" style="white-space:pre">			</span>printf("%d",rx[i]);</p><p><span class="Apple-tab-span" style="white-space:pre">			</span>break;</p><p><span class="Apple-tab-span" style="white-space:pre">		</span>}</p><p><span class="Apple-tab-span" style="white-space:pre">		</span>printf("%dx^%d + ",rx[i],i);</p><p><span class="Apple-tab-span" style="white-space:pre">	</span>}</p><p><span class="Apple-tab-span" style="white-space:pre">	</span>printf("\n");</p><p><span class="Apple-tab-span" style="white-space:pre">	</span>free(rx); //ÇÒ´ç ¸Þ¸ð¸® ¼Ò¸ê</p><p><span class="Apple-tab-span" style="white-space:pre">	</span></p><p>}</p><p><br></p><p>void multi_poly(int n,int *rx)</p><p>{</p><p><span class="Apple-tab-span" style="white-space:pre">	</span>int i,j;</p><p><span class="Apple-tab-span" style="white-space:pre">	</span>int *px;</p><p><span class="Apple-tab-span" style="white-space:pre">	</span>int *qx;</p><p><span class="Apple-tab-span" style="white-space:pre">	</span>px=(int *)malloc(sizeof (int) *n);</p><p><span class="Apple-tab-span" style="white-space:pre">	</span>qx=(int *)malloc(sizeof (int) *n);</p><p><span class="Apple-tab-span" style="white-space:pre">	</span>fill_poly(px,qx,n);</p><p><span class="Apple-tab-span" style="white-space:pre">	</span>for(i=0;i&lt;n;i++)</p><p><span class="Apple-tab-span" style="white-space:pre">	</span>{</p><p><span class="Apple-tab-span" style="white-space:pre">		</span>for(j=0;j&lt;n;j++)</p><p><span class="Apple-tab-span" style="white-space:pre">		</span>{</p><p><span class="Apple-tab-span" style="white-space:pre">			</span>rx[i+j]=rx[i+j]+(qx[i]*px[j]);</p><p><span class="Apple-tab-span" style="white-space:pre">		</span>}</p><p><span class="Apple-tab-span" style="white-space:pre">	</span>}</p><p>}</p><p><br></p><p>void fill_poly(int *px,int *qx,int n)</p><p>{</p><p><span class="Apple-tab-span" style="white-space:pre">	</span>int i;</p><p><span class="Apple-tab-span" style="white-space:pre">	</span>for(i=0;i&lt;n;i++)</p><p><span class="Apple-tab-span" style="white-space:pre">	</span>{</p><p><span class="Apple-tab-span" style="white-space:pre">		</span>if(i==0)</p><p><span class="Apple-tab-span" style="white-space:pre">		</span>{</p><p><span class="Apple-tab-span" style="white-space:pre">			</span>printf("Ã¹¹øÂ° ´ÙÇ×½ÄÀÇ »ó¼ö¸¦ ÀÔ·Â ÇÏ½Ã¿À. :");</p><p><span class="Apple-tab-span" style="white-space:pre">			</span>scanf("%d",&amp;px[i]);</p><p><span class="Apple-tab-span" style="white-space:pre">			</span>i++;</p><p><span class="Apple-tab-span" style="white-space:pre">		</span>}</p><p><span class="Apple-tab-span" style="white-space:pre">		</span>printf("Ã¹¹øÂ° ´ÙÇ×½ÄÀÇ %dÂ÷ °è¼ö¸¦ ¾²½Ã¿À. :",i);</p><p><span class="Apple-tab-span" style="white-space:pre">		</span>scanf("%d",&amp;px[i]);</p><p><span class="Apple-tab-span" style="white-space:pre">	</span>}</p><p><span class="Apple-tab-span" style="white-space:pre">	</span>for(i=0;i&lt;n;i++)</p><p><span class="Apple-tab-span" style="white-space:pre">	</span>{</p><p><span class="Apple-tab-span" style="white-space:pre">		</span>if(i==0)</p><p><span class="Apple-tab-span" style="white-space:pre">		</span>{</p><p><span class="Apple-tab-span" style="white-space:pre">			</span>printf("µÎ¹øÂ° ´ÙÇ×½ÄÀÇ »ó¼ö¸¦ ÀÔ·Â ÇÏ½Ã¿À. :");</p><p><span class="Apple-tab-span" style="white-space:pre">			</span>scanf("%d",&amp;qx[i]);</p><p><span class="Apple-tab-span" style="white-space:pre">			</span>i++;</p><p><span class="Apple-tab-span" style="white-space:pre">		</span>}</p><p><span class="Apple-tab-span" style="white-space:pre">		</span>printf("µÎ¹øÂ° ´ÙÇ×½ÄÀÇ %dÂ÷ °è¼ö¸¦ ¾²½Ã¿À. ",i);</p><p><span class="Apple-tab-span" style="white-space:pre">		</span>scanf("%d",&amp;qx[i]);</p><p><span class="Apple-tab-span" style="white-space:pre">	</span>}</p><p><span class="Apple-tab-span" style="white-space:pre">	</span>printf("Ã¹¹øÂ° ´ÙÇ×½Ä : ");</p><p><span class="Apple-tab-span" style="white-space:pre">	</span>for(i=n-1;i&gt;=0;i--)</p><p><span class="Apple-tab-span" style="white-space:pre">	</span>{</p><p><span class="Apple-tab-span" style="white-space:pre">		</span>if(i==0)</p><p><span class="Apple-tab-span" style="white-space:pre">		</span>{</p><p><span class="Apple-tab-span" style="white-space:pre">			</span>printf("%d",px[i]);</p><p><span class="Apple-tab-span" style="white-space:pre">			</span>break;</p><p><span class="Apple-tab-span" style="white-space:pre">		</span>}</p><p><span class="Apple-tab-span" style="white-space:pre">		</span>printf("%dx^%d + ",px[i],i);</p><p><span class="Apple-tab-span" style="white-space:pre">	</span>}</p><p><span class="Apple-tab-span" style="white-space:pre">	</span>printf("\n");</p><p><span class="Apple-tab-span" style="white-space:pre">	</span>printf("µÎ¹øÂ° ´ÙÇ×½Ä : ");</p><p><span class="Apple-tab-span" style="white-space:pre">	</span>for(i=n-1;i&gt;=0;i--)</p><p><span class="Apple-tab-span" style="white-space:pre">	</span>{</p><p><span class="Apple-tab-span" style="white-space:pre">		</span>if(i==0)</p><p><span class="Apple-tab-span" style="white-space:pre">		</span>{</p><p><span class="Apple-tab-span" style="white-space:pre">			</span>printf("%d",qx[i]);</p><p><span class="Apple-tab-span" style="white-space:pre">			</span>break;</p><p><span class="Apple-tab-span" style="white-space:pre">		</span>}</p><p><span class="Apple-tab-span" style="white-space:pre">		</span>printf("%dx^%d + ",qx[i],i);</p><p><span class="Apple-tab-span" style="white-space:pre">	</span>}</p><p><span class="Apple-tab-span" style="white-space:pre">	</span>printf("\n");</p><p>}</p><p><br></p><p>Æ²Àº Àâ¾Ò´Âµ¥ °á°ú°¡ ¾²·¹±â°ªÀÌ ¸· ¶ß³×¿©</p><p>¿ÖÀÌ·¯ÁÒ ¾Æ ¸Ó¸® ³Ê¹« ¾ÆÇÅ´Ï´Ù ¤Ð¤Ð</p></p></p>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    <table width=100% border='0' cellpadding='0' cellspacing='0'>
                    <tr>
                    <td align='left' valign='top'>
                                <tr>
                                    <td nowrap style="position:relative" align='left'>
<a href="http://k.daum.net/qna/qna_index.html" class="bG12">Q&A Áö½Ä</a> &gt;
<a href="http://k.daum.net/qna/list.html?category_id=QC" class="bG12">ÄÄÇ»ÅÍ,ÀÎÅÍ³Ý</a> &gt;
<a href="http://k.daum.net/qna/list.html?category_id=QCA" class="bG12">ÇÁ·Î±×·¡¹Ö</a> &gt;
                <a href="http://k.daum.net/qna/list.html?category_id=QCA001" class="bG12"><b>C,C++</b></a>
                                    </td>
                                    <td nowrap style="position:relative" align='right'>
                                                <a href="http://k.daum.net/qna/answer.html?qid=553hz" onFocus="this.blur();"><img src="http://i2.daumcdn.net/imgsrc.search/knowledge4/2009/new/btn_rss_rely.gif" width="87" height="33" alt="´äº¯ÇÏ±â" border='0'/></a>
                                    </td>
                                </tr>
                        </table>
                    ]]>
                </description>
                <author>ºñ°ø°³´Ô</author>
                <pubDate>7 Apr 2013 03:08:48 GMT</pubDate>
            </item>
            <item>
                <title>¼ø¼­µµ ¼øÈ¯Çü°ú ºÐ±âÇü</title>
                <link>http://k.daum.net/qna/view.html?qid=553KG</link>
                <category>ÄÄÇ»ÅÍ,ÀÎÅÍ³Ý > ÇÁ·Î±×·¡¹Ö > C,C++</category>
                <description>
                    <![CDATA[
                        <table width=100% cellspacing='1' cellpadding='5' border='0' bgcolor='#ffffff' style='margin-right:10px;'>
                            <tbody>
                                <tr>
                                    <td width=100% bgcolor='#ffffff'>
                                    ¼øÈ¯Çü°ú ºÐ±âÇü µ¿½Ã¿¡ »ç¿ëÇÒ¼öÀÖ³ª¿ä? »ç¿ëÇÒ¼öÀÖ´Ù¸é ¾î¶²½ÄÀÎÁö<BR>
&nbsp;<BR>
°£´ÜÇÏ°Ô&nbsp;¼Ò¼ö¸¦±¸ÇÏ´Â ¾Ë°í¸®ÁòÀ¸·Î &nbsp;±×·ÁÁÖ¼ÌÀ¸¸é ÁÁ°Ú½À´Ï´Ù.<BR>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    <table width=100% border='0' cellpadding='0' cellspacing='0'>
                    <tr>
                    <td align='left' valign='top'>
                                <tr>
                                    <td nowrap style="position:relative" align='left'>
<a href="http://k.daum.net/qna/qna_index.html" class="bG12">Q&A Áö½Ä</a> &gt;
<a href="http://k.daum.net/qna/list.html?category_id=QC" class="bG12">ÄÄÇ»ÅÍ,ÀÎÅÍ³Ý</a> &gt;
<a href="http://k.daum.net/qna/list.html?category_id=QCA" class="bG12">ÇÁ·Î±×·¡¹Ö</a> &gt;
                <a href="http://k.daum.net/qna/list.html?category_id=QCA001" class="bG12"><b>C,C++</b></a>
                                    </td>
                                    <td nowrap style="position:relative" align='right'>
                                                <a href="http://k.daum.net/qna/answer.html?qid=553KG" onFocus="this.blur();"><img src="http://i2.daumcdn.net/imgsrc.search/knowledge4/2009/new/btn_rss_rely.gif" width="87" height="33" alt="´äº¯ÇÏ±â" border='0'/></a>
                                    </td>
                                </tr>
                        </table>
                    ]]>
                </description>
                    <author>·çÆä¾Æ´Ô</author>
                <pubDate>6 Apr 2013 18:23:45 GMT</pubDate>
            </item>
            <item>
                <title>C¾ð¾î ¹è¿­¿¡ °üÇÑ Áú¹®ÀÔ´Ï´Ù.</title>
                <link>http://k.daum.net/qna/view.html?qid=552qz</link>
                <category>ÄÄÇ»ÅÍ,ÀÎÅÍ³Ý > ÇÁ·Î±×·¡¹Ö > C,C++</category>
                <description>
                    <![CDATA[
                        <table width=100% cellspacing='1' cellpadding='5' border='0' bgcolor='#ffffff' style='margin-right:10px;'>
                            <tbody>
                                <tr>
                                    <td width=100% bgcolor='#ffffff'>
                                    int arr[10],x,i;<BR>
for(i=0;i&lt;10;i++)<BR>
printf("¼ýÀÚ ÀÔ·Â : ");<BR>
scanf("%d",&amp;arr[x]);<BR>
&nbsp;<BR>
Àú·¸°Ô ÇÏ¸éÀº 10°³ÀÇ ¼ýÀÚ¸¦ arr[0] ~ arr[9]±îÁö ÀÔ·ÂÇÏ°Ô µÇ´Âµ¥ <BR>
&nbsp;<BR>
¸¸¾à¿¡ ¸ÕÀú ÀÔ·ÂµÈ ¼ýÀÚ°¡ ³ªÁß¿¡ ÀÔ·ÂµÈ ¼ýÀÚº¸´Ù Å©´Ù¸éÀº ±× ºÎºÐÀ» ¹Ù²Ü·Á¸éÀº ¾î¶»°Ô ÇØ¾ß µÇ³ª¿ä?<BR>
¸¸¾à¿¡ 4,5,3&nbsp; ÀÌ ÀÔ·ÂµÇ¸éÀº 3,4,5 ÀÌ·¸°Ô µÇµµ·Ï <BR>
&nbsp;<BR>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    <table width=100% border='0' cellpadding='0' cellspacing='0'>
                    <tr>
                    <td align='left' valign='top'>
                                <tr>
                                    <td nowrap style="position:relative" align='left'>
<a href="http://k.daum.net/qna/qna_index.html" class="bG12">Q&A Áö½Ä</a> &gt;
<a href="http://k.daum.net/qna/list.html?category_id=QC" class="bG12">ÄÄÇ»ÅÍ,ÀÎÅÍ³Ý</a> &gt;
<a href="http://k.daum.net/qna/list.html?category_id=QCA" class="bG12">ÇÁ·Î±×·¡¹Ö</a> &gt;
                <a href="http://k.daum.net/qna/list.html?category_id=QCA001" class="bG12"><b>C,C++</b></a>
                                    </td>
                                    <td nowrap style="position:relative" align='right'>
                                                <a href="http://k.daum.net/qna/answer.html?qid=552qz" onFocus="this.blur();"><img src="http://i2.daumcdn.net/imgsrc.search/knowledge4/2009/new/btn_rss_rely.gif" width="87" height="33" alt="´äº¯ÇÏ±â" border='0'/></a>
                                    </td>
                                </tr>
                        </table>
                    ]]>
                </description>
                    <author>µ¿½ÉÀÇ¼¼°èONE´Ô</author>
                <pubDate>6 Apr 2013 12:31:39 GMT</pubDate>
            </item>
            <item>
                <title>¼Ò½ºÁ» ºÁÁÖ¼¼¿ä.</title>
                <link>http://k.daum.net/qna/view.html?qid=54zlJ</link>
                <category>ÄÄÇ»ÅÍ,ÀÎÅÍ³Ý > ÇÁ·Î±×·¡¹Ö > C,C++</category>
                <description>
                    <![CDATA[
                        <table width=100% cellspacing='1' cellpadding='5' border='0' bgcolor='#ffffff' style='margin-right:10px;'>
                            <tbody>
                                <tr>
                                    <td width=100% bgcolor='#ffffff'>
                                    <DIV><H1 style="MARGIN: 0pt; FONT-FAMILY: verdana; COLOR: rgb(200,66,5)">QnA</H1><P style="MARGIN: 0pt; FONT-FAMILY: verdana; COLOR: rgb(200,66,5)">¡¡<BR><TABLE style="BORDER-BOTTOM: medium none; BORDER-LEFT: medium none; BORDER-COLLAPSE: collapse; BORDER-TOP: medium none; BORDER-RIGHT: medium none" class=MsoTableGrid border=1 cellSpacing=0 cellPadding=0 width="100%"><TBODY><TR><TD style="BORDER-BOTTOM: black 1pt solid; BORDER-LEFT: black 1pt solid; PADDING-BOTTOM: 0cm; BACKGROUND-COLOR: transparent; PADDING-LEFT: 5.4pt; PADDING-RIGHT: 5.4pt; BORDER-TOP: black 1pt solid; BORDER-RIGHT: black 1pt solid; PADDING-TOP: 0cm" vAlign=top><P style="MARGIN: 0cm 0cm 0pt"><FONT color=#000000 size=2 face="¸¼Àº °íµñ">»ç¿ë¾ð¾î <FONT color=#e31600>(Ä¥ÇØÁÖ¼¼¿ä) =&gt;</FONT> (<FONT color=#ff0000>C#,</FONT>VB)</FONT><BR></TD></TR><TR><TD style="BORDER-BOTTOM: black 1pt solid; BORDER-LEFT: black 1pt solid; PADDING-BOTTOM: 0cm; BACKGROUND-COLOR: transparent; PADDING-LEFT: 5.4pt; PADDING-RIGHT: 5.4pt; BORDER-TOP: rgb(212,208,200); BORDER-RIGHT: black 1pt solid; PADDING-TOP: 0cm" vAlign=top><P style="MARGIN: 0cm 0cm 0pt"><FONT color=#000000 size=2 face="¸¼Àº °íµñ">»ç¿ëÅø (VS)&nbsp;: vs</FONT><BR></TD></TR><TR><TD style="BORDER-BOTTOM: black 1pt solid; BORDER-LEFT: black 1pt solid; PADDING-BOTTOM: 0cm; BACKGROUND-COLOR: transparent; PADDING-LEFT: 5.4pt; PADDING-RIGHT: 5.4pt; BORDER-TOP: rgb(212,208,200); BORDER-RIGHT: black 1pt solid; PADDING-TOP: 0cm" vAlign=top><P style="MARGIN: 0cm 0cm 0pt"><FONT color=#000000 size=2 face="¸¼Àº °íµñ">¿î¿µÃ¼Á¦ (OS) :&nbsp;win</FONT><BR></TD></TR></TBODY></TABLE><BR><BR><BR>¾Æ·¡ ¼Ò½º c#¿¡¼­ µ¿ÀÛµÇ·Á¸é ¾î¶»°Ô °³¼±ÇØ¾ß ÇÏ³ª¿ä?<BR>¹®Á¦°¡ µÇ´Â ºÎºÐÀº »¡°£»öÀ¸·Î Ç¥±âÇÏ¿´½À´Ï´Ù.<BR>&nbsp;<BR>interface ¾È¿¡¼­ public °ú °°Àº ¼±¾ðÀÌ ¾ÈµÇ´Â °ÍÀ¸·Î ¾Ë°í ÀÖ½À´Ï´Ù. ÀÌ·²¶§ ¾î¶»°Ô ÇØ¾ßÇÏ´ÂÁö¿Í<BR>class ³»¿¡¼­ Ãß»óÅ¬·¹½º¸¦ ÅëÇÑ interface ¸¦ class·Î ¸®ÅÏÇÏ·Á¸é ¾î¶»°Ô ÇØ¾ßÇÏ´ÂÁö ¹®ÀÇ µå¸³´Ï´Ù.<BR>&nbsp;<BR>&nbsp;&nbsp;&nbsp; class HelloWorld {<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; static void Main(string[] args) {<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; MessageBody mb = new MessageBody();<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; mb.configure("¾È³çÇÏ¼¼¿ä");<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; AbstractStrategyFactory asf = DefaultFactory.getInstance();<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; MessageStrategy strategy = asf.createStrategy(mb);<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; mb.send(strategy);<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<BR>&nbsp;&nbsp;&nbsp; }<BR>&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp; public interface MessageStrategy {<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT color=#ff0000>public void sendMessage();<BR></FONT>&nbsp;&nbsp;&nbsp; }<BR>&nbsp;&nbsp;&nbsp; public abstract class AbstractStrategyFactory {<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; public abstract MessageStrategy createStrategy(MessageBody mb);<BR>&nbsp;&nbsp;&nbsp; }<BR>&nbsp;&nbsp;&nbsp; sealed public class MessageBody {<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; object payload;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; public object getPayload() {<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return payload;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; public void configure(object obj) {<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; payload = obj;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; public void send(MessageStrategy ms) {<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ms.sendMessage();<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<BR>&nbsp;&nbsp;&nbsp; }<BR>&nbsp;&nbsp;&nbsp; public class DefaultFactory : AbstractStrategyFactory {<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; static DefaultFactory instance;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; private DefaultFactory() { }<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; public static AbstractStrategyFactory getInstance() {<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if (instance==null) instance = new DefaultFactory();<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return instance;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; public override MessageStrategy createStrategy(MessageBody mb) {<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT color=#ff0000>return new MessageStrategy() {<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; MessageBody body = mb;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; public void sendMessage() {<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; object obj = body.getPayload();<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Console.Out.WriteLine((String)obj);<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; };<BR></FONT>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<BR>&nbsp;&nbsp;&nbsp; }<BR><BR></DIV>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    <table width=100% border='0' cellpadding='0' cellspacing='0'>
                    <tr>
                    <td align='left' valign='top'>
                                <tr>
                                    <td nowrap style="position:relative" align='left'>
<a href="http://k.daum.net/qna/qna_index.html" class="bG12">Q&A Áö½Ä</a> &gt;
<a href="http://k.daum.net/qna/list.html?category_id=QC" class="bG12">ÄÄÇ»ÅÍ,ÀÎÅÍ³Ý</a> &gt;
<a href="http://k.daum.net/qna/list.html?category_id=QCA" class="bG12">ÇÁ·Î±×·¡¹Ö</a> &gt;
                <a href="http://k.daum.net/qna/list.html?category_id=QCA001" class="bG12"><b>C,C++</b></a>
                                    </td>
                                    <td nowrap style="position:relative" align='right'>
                                                <a href="http://k.daum.net/qna/answer.html?qid=54zlJ" onFocus="this.blur();"><img src="http://i2.daumcdn.net/imgsrc.search/knowledge4/2009/new/btn_rss_rely.gif" width="87" height="33" alt="´äº¯ÇÏ±â" border='0'/></a>
                                    </td>
                                </tr>
                        </table>
                    ]]>
                </description>
                    <author>Ìèá¦ð­ÚÅ´Ô</author>
                <pubDate>5 Apr 2013 05:33:11 GMT</pubDate>
            </item>
            <item>
                <title>±âÃÊ c ¾ð¾î ¹®Á¦Á» µµ¿ÍÁÖ¼¼¿ä</title>
                <link>http://k.daum.net/qna/view.html?qid=54o34</link>
                <category>ÄÄÇ»ÅÍ,ÀÎÅÍ³Ý > ÇÁ·Î±×·¡¹Ö > C,C++</category>
                <description>
                    <![CDATA[
                        <table width=100% cellspacing='1' cellpadding='5' border='0' bgcolor='#ffffff' style='margin-right:10px;'>
                            <tbody>
                                <tr>
                                    <td width=100% bgcolor='#ffffff'>
                                    <p><p>1. ´ÙÀ½ c ÄÚµå¿Í µ¿ÀÏÇÑ ÀÏÀ» ÇÏ´Â while ¹®À» ÀÛ¼ºÇÏ½Ã¿À</p><p><br></p><p>int i;</p><p><br></p><p>for (i=1; i&lt;=10; i+=3)</p><p>{</p><p>&nbsp; &nbsp;if(i % 5 == 0)</p><p>&nbsp; &nbsp;printf("%d\n", i);</p><p>}</p><p><span style="font-size: 10pt; line-height: 1.7;"><br></span></p><p><span style="font-size: 10pt; line-height: 1.7;">2. ÇÏ³ªÀÇ ¹®ÀÚ¸¦ ÀÔ·Â¹Þ°í, ÀÔ·ÂÇÑ ¹®ÀÚ¸¦ ¾ËÆÄºª ´ë¹®ÀÚ, ¾ËÆÄºª ¼Ò¹®ÀÚ, ¼ýÀÚ, ±×¿ÜÀÇ ¹®ÀÚµé·Î ±¸º°ÇÏ´Â ÇÁ·Î±×·¥À» if¹®À» »ç¿ëÇÏ¿© ÀÛ¼ºÇÏ½Ã¿À.</span></p><p><span style="font-size: 10pt; line-height: 1.7;"><br></span></p><p>°¡¸£ÄÑ ÁÖ¼¼¿ä..</p></p>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    <table width=100% border='0' cellpadding='0' cellspacing='0'>
                    <tr>
                    <td align='left' valign='top'>
                                <tr>
                                    <td nowrap style="position:relative" align='left'>
<a href="http://k.daum.net/qna/qna_index.html" class="bG12">Q&A Áö½Ä</a> &gt;
<a href="http://k.daum.net/qna/list.html?category_id=QC" class="bG12">ÄÄÇ»ÅÍ,ÀÎÅÍ³Ý</a> &gt;
<a href="http://k.daum.net/qna/list.html?category_id=QCA" class="bG12">ÇÁ·Î±×·¡¹Ö</a> &gt;
                <a href="http://k.daum.net/qna/list.html?category_id=QCA001" class="bG12"><b>C,C++</b></a>
                                    </td>
                                    <td nowrap style="position:relative" align='right'>
                                                <a href="http://k.daum.net/qna/answer.html?qid=54o34" onFocus="this.blur();"><img src="http://i2.daumcdn.net/imgsrc.search/knowledge4/2009/new/btn_rss_rely.gif" width="87" height="33" alt="´äº¯ÇÏ±â" border='0'/></a>
                                    </td>
                                </tr>
                        </table>
                    ]]>
                </description>
                <author>ºñ°ø°³´Ô</author>
                <pubDate>31 Mar 2013 08:10:23 GMT</pubDate>
            </item>
            <item>
                <title>´ÙÀ½ C¾ð¾î ¿µ¾î ±ÛÀÚ ÀÔ·ÂÇØ¼­ ¾ÕÀ¸·Î ÀÐÀ¸³ª µÚ·Î ÀÐÀ¸³ª ±ÛÀÚ°¡ °°ÀºÁö ´Ù¸¥Áö È®ÀÎÇÏ´Â ÇÁ·Î±×·¥</title>
                <link>http://k.daum.net/qna/view.html?qid=54k3B</link>
                <category>ÄÄÇ»ÅÍ,ÀÎÅÍ³Ý > ÇÁ·Î±×·¡¹Ö > C,C++</category>
                <description>
                    <![CDATA[
                        <table width=100% cellspacing='1' cellpadding='5' border='0' bgcolor='#ffffff' style='margin-right:10px;'>
                            <tbody>
                                <tr>
                                    <td width=100% bgcolor='#ffffff'>
                                    #include &lt;stdio.h&gt;<BR>int main(void)<BR>{<BR>&nbsp;int i,x=0,c=0;<BR>&nbsp;char str[50];<BR>&nbsp;printf("¹®ÀÚÀÔ·Â : ");<BR>&nbsp;scanf("%s",str);<BR>&nbsp;while(str[x]!='\0')<BR>&nbsp;x++;<BR>&nbsp;for(i=0;i&lt;x;i++)<BR>&nbsp;{<BR>&nbsp;if(str[i]==str[x-1])&nbsp;&nbsp;&nbsp;&nbsp;<BR>&nbsp;c+=1;<BR>&nbsp;<BR>&nbsp;else<BR>&nbsp;c+=0;<BR>
&nbsp;x--;<BR>&nbsp;}<BR>&nbsp;if(c==x/2+1)<BR>&nbsp;printf("¿µ¾î¾ÕÀ¸·Î ÀÐÀ¸³ª µÚ·Î ÀÐÀ¸³ª ¶È°°½À´Ï´Ù.");<BR>&nbsp;else<BR>&nbsp;printf("¾ÕÀ¸·Î ÀÐÀ¸³ª µÚ·Î ÀÐÀ¸³ª ¶È°°Áö ¾Ê½À´Ï´Ù.");<BR>&nbsp;return 0;<BR>}<BR>
&nbsp;<BR>
¿¹¸¦µé¸éÀº schhcs¸¦ ÀÔ·ÂÇÏ¸éÀº '¿µ¾î¾ÕÀ¸·Î ÀÐÀ¸³ª µÚ·Î ÀÐÀ¸³ª ¶È°°½À´Ï´Ù' °¡ Ãâ·ÂµÇ°ÚÁÒ<BR>
&nbsp;<BR>
ÇØ´ç ¼Ò½º µ¿ÀÛÀÌ ¾ÈµÇ´Âµ¥ ¹¹°¡ Àß¸øµÈ°ÇÁö ¾Æ¹«¸® Ã£¾ÆºÁµµ È®ÀÎÀÌ ¾ÈµË´Ï´Ù.<BR><BR>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    <table width=100% border='0' cellpadding='0' cellspacing='0'>
                    <tr>
                    <td align='left' valign='top'>
                                <tr>
                                    <td nowrap style="position:relative" align='left'>
<a href="http://k.daum.net/qna/qna_index.html" class="bG12">Q&A Áö½Ä</a> &gt;
<a href="http://k.daum.net/qna/list.html?category_id=QC" class="bG12">ÄÄÇ»ÅÍ,ÀÎÅÍ³Ý</a> &gt;
<a href="http://k.daum.net/qna/list.html?category_id=QCA" class="bG12">ÇÁ·Î±×·¡¹Ö</a> &gt;
                <a href="http://k.daum.net/qna/list.html?category_id=QCA001" class="bG12"><b>C,C++</b></a>
                                    </td>
                                    <td nowrap style="position:relative" align='right'>
                                                <a href="http://k.daum.net/qna/answer.html?qid=54k3B" onFocus="this.blur();"><img src="http://i2.daumcdn.net/imgsrc.search/knowledge4/2009/new/btn_rss_rely.gif" width="87" height="33" alt="´äº¯ÇÏ±â" border='0'/></a>
                                    </td>
                                </tr>
                        </table>
                    ]]>
                </description>
                    <author>µ¿½ÉÀÇ¼¼°èONE´Ô</author>
                <pubDate>29 Mar 2013 08:28:56 GMT</pubDate>
            </item>
            <item>
                <title>[±Þ]Ä¿ÇÇÀÚÆÇ±â ¾Ë°í¸®Áò ±ÞÇÏ°Ô Áú¹®µå·Á¿ä</title>
                <link>http://k.daum.net/qna/view.html?qid=54iZW</link>
                <category>ÄÄÇ»ÅÍ,ÀÎÅÍ³Ý > ÇÁ·Î±×·¡¹Ö > C,C++</category>
                <description>
                    <![CDATA[
                        <table width=100% cellspacing='1' cellpadding='5' border='0' bgcolor='#ffffff' style='margin-right:10px;'>
                            <tbody>
                                <tr>
                                    <td width=100% bgcolor='#ffffff'>
                                    Ä¿ÇÇÀÚÆÇ±â °èÈ¹¾È ¹× ¾Ë°í¸®Áò ¼ø¼­µµ Áö±Ý ±ÞÇÏ°Ô ÇÊ¿äÇÕ´Ï´Ù.<BR>
<BR>
º¸°í¼­¶ó¼­ Áö±Ý ±ÞÇÏ°Ô ½á¾ß ÇÏ¹Ç·Î, ºÎÅ¹µå¸³´Ï´Ù<BR>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    <table width=100% border='0' cellpadding='0' cellspacing='0'>
                    <tr>
                    <td align='left' valign='top'>
                                <tr>
                                    <td nowrap style="position:relative" align='left'>
<a href="http://k.daum.net/qna/qna_index.html" class="bG12">Q&A Áö½Ä</a> &gt;
<a href="http://k.daum.net/qna/list.html?category_id=QC" class="bG12">ÄÄÇ»ÅÍ,ÀÎÅÍ³Ý</a> &gt;
<a href="http://k.daum.net/qna/list.html?category_id=QCA" class="bG12">ÇÁ·Î±×·¡¹Ö</a> &gt;
                <a href="http://k.daum.net/qna/list.html?category_id=QCA001" class="bG12"><b>C,C++</b></a>
                                    </td>
                                    <td nowrap style="position:relative" align='right'>
                                                <a href="http://k.daum.net/qna/answer.html?qid=54iZW" onFocus="this.blur();"><img src="http://i2.daumcdn.net/imgsrc.search/knowledge4/2009/new/btn_rss_rely.gif" width="87" height="33" alt="´äº¯ÇÏ±â" border='0'/></a>
                                    </td>
                                </tr>
                        </table>
                    ]]>
                </description>
                <author>ºñ°ø°³´Ô</author>
                <pubDate>28 Mar 2013 13:21:12 GMT</pubDate>
            </item>
            <item>
                <title>Áú¹® ÀÖ½À´Ï´Ù~ ^^*</title>
                <link>http://k.daum.net/qna/view.html?qid=54dEs</link>
                <category>ÄÄÇ»ÅÍ,ÀÎÅÍ³Ý > ÇÁ·Î±×·¡¹Ö > C,C++</category>
                <description>
                    <![CDATA[
                        <table width=100% cellspacing='1' cellpadding='5' border='0' bgcolor='#ffffff' style='margin-right:10px;'>
                            <tbody>
                                <tr>
                                    <td width=100% bgcolor='#ffffff'>
                                    ¾È³çÇÏ¼¼¿ä~<BR>°­ÀÇ ³Ê¹«&nbsp;Àç¹Õ°Ô Àß&nbsp;µè°í ÀÖ½À´Ï´Ù ^^* ³Ê¹« °¨»çµå¸®°í¿ä~ <BR>Áú¹® µå¸³´Ï´Ù(ÀÌ»óÇÑ°Í ¹°¾î¼­ ÁË¼ÛÇÕ´Ï´Ù ^^;;)<BR>&nbsp;<BR>#include &lt;stdio.h&gt;<BR>#include &lt;stdlib.h&gt;<BR>#include &lt;string.h&gt;<BR>int main()<BR>{<BR>&nbsp;int n,i,max;<BR>&nbsp;scanf("%d%*c",&amp;max);<BR>&nbsp;char *str=(char *)malloc(sizeof(char)*(max+1));<BR>&nbsp;<BR>&nbsp;fgets(str, max+1, stdin); <BR>//&nbsp;gets(str);<BR>&nbsp;n=strlen(str);<BR>&nbsp;printf("%d\n", n);<BR>&nbsp;<BR>&nbsp;for(i=n-1; i&gt;=0; i--){&nbsp;&nbsp;&nbsp; <BR>&nbsp;<BR>&nbsp;&nbsp;if(str[i]==' ' || str[i]=='\n' ){<BR>&nbsp;&nbsp;printf("%s ", &amp;str[i+1]);<BR>&nbsp;&nbsp;<BR>&nbsp;&nbsp;str[i]=0;<BR>&nbsp;&nbsp;}<BR>&nbsp;}<BR>&nbsp;printf("%s\n", &amp;str[0]);<BR>&nbsp;free(str);<BR>}<BR>&nbsp;<BR>¿À´Ã ¹è¿î ³»¿ëÀÎµ¥¿ä, ¿Ö fgets·Î Ãâ·ÂÇÏ¸é °è¼Ó °ø¹éÀÌ ¸ÕÀú Ãâ·ÂÀÌ µÉ±î¿ä?<BR>&nbsp;<BR>&nbsp;<BR><P style="TEXT-ALIGN: center"><img src="http://cfile281.uf.daum.net/image/15526B5051516DF40C9AA9" class="txc-image" width="293" height="105" style="WIDTH: 293px; FLOAT: none; HEIGHT: 105px; CLEAR: none" actualwidth="330" border="0" hspace="1" vspace="1"  id="A_15526B5051516DF40C9AA9"/><img src="http://cfile274.uf.daum.net/image/15470C5051516DF41C8621" class="txc-image" width="287" height="106" style="WIDTH: 287px; FLOAT: none; HEIGHT: 106px; CLEAR: none" actualwidth="312" border="0" hspace="1" vspace="1"  id="A_15470C5051516DF41C8621"/><BR><P style="TEXT-ALIGN: center">¿ÞÂÊÀº fgets, ¿À¸¥ÂÊÀº gets·Î Ãâ·Â ÇÑ °ÍÀÔ´Ï´Ù.... ¤Ð¤Ð<BR>&nbsp;<BR><P style="TEXT-ALIGN: center">&nbsp;<BR><BR>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    <table width=100% border='0' cellpadding='0' cellspacing='0'>
                    <tr>
                    <td align='left' valign='top'>
                                <tr>
                                    <td nowrap style="position:relative" align='left'>
<a href="http://k.daum.net/qna/qna_index.html" class="bG12">Q&A Áö½Ä</a> &gt;
<a href="http://k.daum.net/qna/list.html?category_id=QC" class="bG12">ÄÄÇ»ÅÍ,ÀÎÅÍ³Ý</a> &gt;
<a href="http://k.daum.net/qna/list.html?category_id=QCA" class="bG12">ÇÁ·Î±×·¡¹Ö</a> &gt;
                <a href="http://k.daum.net/qna/list.html?category_id=QCA001" class="bG12"><b>C,C++</b></a>
                                    </td>
                                    <td nowrap style="position:relative" align='right'>
                                                <a href="http://k.daum.net/qna/answer.html?qid=54dEs" onFocus="this.blur();"><img src="http://i2.daumcdn.net/imgsrc.search/knowledge4/2009/new/btn_rss_rely.gif" width="87" height="33" alt="´äº¯ÇÏ±â" border='0'/></a>
                                    </td>
                                </tr>
                        </table>
                    ]]>
                </description>
                    <author>¾Æ¿ì±¸½ºÆ®´Ô</author>
                <pubDate>27 Mar 2013 10:16:55 GMT</pubDate>
            </item>
            <item>
                <title>c++ ÇÁ·Î±×·¡¹Ö °ü·Ã µµ¿ò ºÎÅ¹µå·Á¿ä</title>
                <link>http://k.daum.net/qna/view.html?qid=54dHo</link>
                <category>ÄÄÇ»ÅÍ,ÀÎÅÍ³Ý > ÇÁ·Î±×·¡¹Ö > C,C++</category>
                <description>
                    <![CDATA[
                        <table width=100% cellspacing='1' cellpadding='5' border='0' bgcolor='#ffffff' style='margin-right:10px;'>
                            <tbody>
                                <tr>
                                    <td width=100% bgcolor='#ffffff'>
                                    <p><p>¾ÆÀÌµð¿Í ºñ¹Ð¹øÈ£¸¦ Á¦´ë·Î ÀÔ·ÂÇßÀ»¶§ °ªÀÌ Ãâ·ÂµÇ°ÔÇÏ´Â ÇÁ·Î±×·¥À» ¸¸µé·Á°íÇÏ°í</p><p>¶ÇÇÑ ¾ÆÀÌµð°¡ Æ²¸®°Å³ª ºñ¹Ð¹øÈ£°¡ Æ²¸®¸é Æ²¸®´Ù°í coutµÇ°Ô ¸¸µå´Â ÇÁ·Î±×·¥À» ¸¸µå·Á´Âµ¥¿ä</p><p>Ã¥°ú ÀÎÅÍ³Ý Ã£¾Æº¸¸é¼­ÇØµµ µµÀúÈ÷ ¸Ó¸®°¡ ¾Èµû¶óÁÖ³×¿ä ÀÌ·¸°Ô Àú·¸°Ô º¯È¯½ÃÄÑºÁµµ ¾î¶² ÇÑºÎºÐÀÌµÇ¸é</p><p>´Ù¸¥ºÎºÐÀÌ ¾ÈµÇ°í ¹ÌÄ¥°Í°°³×¿ä µµ¿òÁ» ºÎÅ¹µå¸³´Ï´Ù.</p><p><br></p><p>#include &lt;iostream&gt;</p><p>#include &lt;stdio.h&gt;</p><p>using namespace std;</p><p><br></p><p>// »ç¿ëÀÚ Á¤º¸¸¦ °®´Â ±¸Á¶Ã¼</p><p>struct User</p><p>{</p><p>&nbsp;char userID[20]; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;// ¾ÆÀÌµð</p><p>&nbsp;char passwd[20]; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;// ºñ¹Ð¹øÈ£</p><p>&nbsp;int scores_per_stage[5]; &nbsp;// ½ºÅ×ÀÌÁöº° Á¡¼ö</p><p>&nbsp;unsigned long magicPt; &nbsp; &nbsp;// ¸¶¹ý Æ÷ÀÎÆ®</p><p>&nbsp;unsigned long healthPt; &nbsp; // Ã¼·Â Æ÷ÀÎÆ®</p><p>};</p><p><br></p><p>int main()</p><p>{</p><p><br></p><p>&nbsp;char ID[20] = {0};</p><p>&nbsp;char passwd[20] = {0};</p><p>&nbsp;</p><p>&nbsp;</p><p>&nbsp;// 3¸íÀÇ »ç¿ëÀÚ Á¤º¸¸¦ ´ãÀº ¹è¿­À» ¸¸µé°í</p><p>&nbsp;// »ç¿ëÀÚÀÇ Á¤º¸¸¦ ÃÊ±âÈ­ ÇÑ´Ù.</p><p>&nbsp;User user[3] = {</p><p>&nbsp; { "Sea", "123", {54, 92, 56, 42, 88}, 300, 1001},</p><p>&nbsp; { "Sky", "234", {82, 98, 100, 100, 100}, 200, 1900},</p><p>&nbsp; { "Water", "345", {55, 62, 70, 89, 71}, 400, 500}</p><p>&nbsp;};</p><p>for(;;)</p><p>{</p><p>&nbsp;cout &lt;&lt; "¾ÆÀÌµð¸¦ ÀÔ·ÂÇØÁÖ¼¼¿ä :";</p><p>&nbsp;cin &gt;&gt; ID;</p><p>&nbsp;cout &lt;&lt; "ºñ¹Ð¹øÈ£¸¦ ÀÔ·ÂÇØÁÖ¼¼¿ä :";</p><p>&nbsp;cin &gt;&gt; passwd;</p><p>&nbsp;for(int i = 0; i &lt; 3; i++)</p><p>&nbsp;{</p><p>&nbsp; if(strcmp(ID,user[i].userID) != 1)</p><p>&nbsp; {</p><p>&nbsp; &nbsp;if(strcmp(passwd, user[i].passwd) != 1)</p><p>&nbsp; &nbsp;{</p><p>&nbsp; &nbsp; cout &lt;&lt; "¾ÆÀÌµð : " &lt;&lt; user[i].userID &lt;&lt; "\n";</p><p>&nbsp; &nbsp; cout &lt;&lt; "ºñ¹Ð¹øÈ£ : " &lt;&lt; user[i].passwd &lt;&lt; "\n";</p><p>&nbsp; &nbsp; cout &lt;&lt; "½ºÅ×ÀÌÁöº° Á¡¼ö : " &lt;&lt; user[i].scores_per_stage[0] &lt;&lt; ", " &lt;&lt; user[i].scores_per_stage[1] &lt;&lt; ", " &lt;&lt;</p><p>&nbsp; &nbsp; &nbsp;user[i].scores_per_stage[2] &lt;&lt; ", " &lt;&lt; user[i].scores_per_stage[3] &lt;&lt; ", " &lt;&lt;</p><p>&nbsp; &nbsp; &nbsp;user[i].scores_per_stage[4] &lt;&lt; "\n";</p><p>&nbsp; &nbsp; cout &lt;&lt; "¸ÅÁ÷ Æ÷ÀÎÆ® : " &lt;&lt; user[i].magicPt &lt;&lt; "\n";</p><p>&nbsp; &nbsp; cout &lt;&lt; "Ã¼·Â Æ÷ÀÎÆ® : " &lt;&lt; user[i].healthPt &lt;&lt; "\n\n";</p><p>&nbsp; &nbsp; break;</p><p>&nbsp; &nbsp;}</p><p>&nbsp; &nbsp;else</p><p>&nbsp; &nbsp;{</p><p><span class="Apple-tab-span" style="white-space:pre">	</span> &nbsp; if(strcmp(ID,user[i].userID) != 2)</p><p><span class="Apple-tab-span" style="white-space:pre">	</span> &nbsp; {</p><p><span class="Apple-tab-span" style="white-space:pre">		</span> &nbsp; if(strcmp(passwd, user[i].passwd) != 2)</p><p><span class="Apple-tab-span" style="white-space:pre">		</span> &nbsp; {</p><p><span class="Apple-tab-span" style="white-space:pre">		</span>cout &lt;&lt; "¾ÆÀÌµð : " &lt;&lt; user[i].userID &lt;&lt; "\n";</p><p>&nbsp; &nbsp; &nbsp; &nbsp; cout &lt;&lt; "ºñ¹Ð¹øÈ£ : " &lt;&lt; user[i].passwd &lt;&lt; "\n";</p><p>&nbsp; &nbsp; &nbsp; &nbsp; cout &lt;&lt; "½ºÅ×ÀÌÁöº° Á¡¼ö : " &lt;&lt; user[i].scores_per_stage[0] &lt;&lt; ", " &lt;&lt; user[i].scores_per_stage[1] &lt;&lt; ", " &lt;&lt;</p><p>&nbsp; &nbsp; &nbsp; &nbsp; user[i].scores_per_stage[2] &lt;&lt; ", " &lt;&lt; user[i].scores_per_stage[3] &lt;&lt; ", " &lt;&lt;</p><p>&nbsp; &nbsp; &nbsp; &nbsp; user[i].scores_per_stage[4] &lt;&lt; "\n";</p><p>&nbsp; &nbsp; &nbsp; &nbsp; cout &lt;&lt; "¸ÅÁ÷ Æ÷ÀÎÆ® : " &lt;&lt; user[i].magicPt &lt;&lt; "\n";</p><p>&nbsp; &nbsp; &nbsp; &nbsp; cout &lt;&lt; "Ã¼·Â Æ÷ÀÎÆ® : " &lt;&lt; user[i].healthPt &lt;&lt; "\n\n";</p><p>&nbsp; &nbsp; &nbsp; &nbsp; break;</p><p><span class="Apple-tab-span" style="white-space:pre">		</span> &nbsp; }</p><p><span class="Apple-tab-span" style="white-space:pre">		</span> &nbsp; else</p><p><span class="Apple-tab-span" style="white-space:pre">		</span> &nbsp; {</p><p><span class="Apple-tab-span" style="white-space:pre">	</span> &nbsp;&nbsp;</p><p><span class="Apple-tab-span" style="white-space:pre">			</span> &nbsp; if(strcmp(ID,user[i].userID) != 3)</p><p><span class="Apple-tab-span" style="white-space:pre">			</span> &nbsp; {</p><p><span class="Apple-tab-span" style="white-space:pre">				</span> &nbsp; if(strcmp(passwd, user[i].passwd) != 3)</p><p><span class="Apple-tab-span" style="white-space:pre">				</span> &nbsp; {</p><p><span class="Apple-tab-span" style="white-space:pre">					</span> &nbsp; &nbsp;cout &lt;&lt; "¾ÆÀÌµð : " &lt;&lt; user[i].userID &lt;&lt; "\n";</p><p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; cout &lt;&lt; "ºñ¹Ð¹øÈ£ : " &lt;&lt; user[i].passwd &lt;&lt; "\n";</p><p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; cout &lt;&lt; "½ºÅ×ÀÌÁöº° Á¡¼ö : " &lt;&lt; user[i].scores_per_stage[0] &lt;&lt; ", " &lt;&lt; user[i].scores_per_stage[1] &lt;&lt; ", " &lt;&lt;</p><p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; user[i].scores_per_stage[2] &lt;&lt; ", " &lt;&lt; user[i].scores_per_stage[3] &lt;&lt; ", " &lt;&lt;</p><p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; user[i].scores_per_stage[4] &lt;&lt; "\n";</p><p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; cout &lt;&lt; "¸ÅÁ÷ Æ÷ÀÎÆ® : " &lt;&lt; user[i].magicPt &lt;&lt; "\n";</p><p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; cout &lt;&lt; "Ã¼·Â Æ÷ÀÎÆ® : " &lt;&lt; user[i].healthPt &lt;&lt; "\n\n";</p><p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; break;</p><p><span class="Apple-tab-span" style="white-space:pre">				</span> &nbsp; }</p><p><span class="Apple-tab-span" style="white-space:pre">				</span> &nbsp; else</p><p>&nbsp; &nbsp;{</p><p>&nbsp; &nbsp; &nbsp;cout &lt;&lt; "ºñ¹øÀÌ Æ²¸³´Ï´Ù." &lt;&lt; "\n\n";</p><p>&nbsp; &nbsp; &nbsp;break;</p><p>&nbsp; &nbsp;}</p><p>&nbsp; }</p><p>&nbsp; else</p><p>&nbsp; {</p><p>&nbsp; &nbsp;cout &lt;&lt;"ID°¡ Æ²¸³´Ï´Ù."&lt;&lt; "\n";</p><p>&nbsp; &nbsp;break;</p><p>&nbsp; }</p><p>&nbsp;}</p><p>&nbsp;</p><p>&nbsp;}</p><p>&nbsp;}</p><p>}</p><p>&nbsp;}</p><p>}</p><p>&nbsp;return 0;</p><p>}</p></p>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    <table width=100% border='0' cellpadding='0' cellspacing='0'>
                    <tr>
                    <td align='left' valign='top'>
                                <tr>
                                    <td nowrap style="position:relative" align='left'>
<a href="http://k.daum.net/qna/qna_index.html" class="bG12">Q&A Áö½Ä</a> &gt;
<a href="http://k.daum.net/qna/list.html?category_id=QC" class="bG12">ÄÄÇ»ÅÍ,ÀÎÅÍ³Ý</a> &gt;
<a href="http://k.daum.net/qna/list.html?category_id=QCA" class="bG12">ÇÁ·Î±×·¡¹Ö</a> &gt;
                <a href="http://k.daum.net/qna/list.html?category_id=QCA001" class="bG12"><b>C,C++</b></a>
                                    </td>
                                    <td nowrap style="position:relative" align='right'>
                                                <a href="http://k.daum.net/qna/answer.html?qid=54dHo" onFocus="this.blur();"><img src="http://i2.daumcdn.net/imgsrc.search/knowledge4/2009/new/btn_rss_rely.gif" width="87" height="33" alt="´äº¯ÇÏ±â" border='0'/></a>
                                    </td>
                                </tr>
                        </table>
                    ]]>
                </description>
                <author>ºñ°ø°³´Ô</author>
                <pubDate>26 Mar 2013 10:05:09 GMT</pubDate>
            </item>
            <item>
                <title>¼Ò¼ö ÀÔÃâ·Â ±Ã±ÝÇÑÁ¡ÀÌ ÀÖ½À´Ï´Ù ±³¼ö´Ô</title>
                <link>http://k.daum.net/qna/view.html?qid=54VGi</link>
                <category>ÄÄÇ»ÅÍ,ÀÎÅÍ³Ý > ÇÁ·Î±×·¡¹Ö > C,C++</category>
                <description>
                    <![CDATA[
                        <table width=100% cellspacing='1' cellpadding='5' border='0' bgcolor='#ffffff' style='margin-right:10px;'>
                            <tbody>
                                <tr>
                                    <td width=100% bgcolor='#ffffff'>
                                    ¾È³çÇÏ¼¼¿ä ¾ß°£¼ö¾÷ µè°íÀÖ´Â ±è»ó±¸ ÇÐ»ýÀÔ´Ï´Ù.<BR>Á¦°¡ ¼Ò¼öÁ¡ ÀÔÃâ·ÂÀ» Ã¥º¸°í ÇØº¸±ä Çß´Âµ¥ Ãâ·ÂºÎºÐÀÌ »çÁø°ú °°ÀÌ ¶ß°Ô µÇ´õ¶ó±¸¿©<BR>±×·¡¼­ Ã¥¿¡ ÀÖ´Â ³»¿ëµµ ±×´ë·Î ÀÔ·ÂÈÄ ½ÇÇàÇØº¸¾Ò´Âµ¥<BR>Ã¥ ³»¿ëÀº ÀÔ·Â¹ÞÀº°ªÀÌ ±×´ë·Î Ãâ·ÂµÇ°Ô ÀÛ¼ºµÇ¾îÀÖ´øµ¥<BR>Á¦°¡ ½ÇÇàÇÏ¸é Ãâ·Â°ªÀÌ ´Ù¸£°Ô ³ª¿Í¼­ Áú¹®ÇÕ´Ï´Ù..<BR><P style="TEXT-ALIGN: center"><img src="http://cfile295.uf.daum.net/image/174B4146514E5ED60EABC5" class="txc-image" style="FLOAT: none; CLEAR: none" actualwidth="1024" border="0" hspace="1" vspace="1" width="1024"  id="A_174B4146514E5ED60EABC5"/><BR>&nbsp;<BR><P style="TEXT-ALIGN: center">&nbsp;<BR>&nbsp;<BR><P style="TEXT-ALIGN: center">&nbsp;<BR><P style="TEXT-ALIGN: center">&nbsp;<BR><P style="TEXT-ALIGN: center"><img src="http://cfile286.uf.daum.net/image/184C6D46514E5ED70CB5F2" class="txc-image" style="FLOAT: none; CLEAR: none" actualwidth="1024" border="0" hspace="1" vspace="1" width="1024"  id="A_184C6D46514E5ED70CB5F2"/><BR><BR>&nbsp;<BR><P style="TEXT-ALIGN: center"><img src="http://cfile275.uf.daum.net/image/2635C842514E5F11096ADC" class="txc-image" style="FLOAT: none; CLEAR: none" actualwidth="1024" border="0" hspace="1" vspace="1" width="1024"  id="A_2635C842514E5F11096ADC"/><BR><BR>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    <table width=100% border='0' cellpadding='0' cellspacing='0'>
                    <tr>
                    <td align='left' valign='top'>
                                <tr>
                                    <td nowrap style="position:relative" align='left'>
<a href="http://k.daum.net/qna/qna_index.html" class="bG12">Q&A Áö½Ä</a> &gt;
<a href="http://k.daum.net/qna/list.html?category_id=QC" class="bG12">ÄÄÇ»ÅÍ,ÀÎÅÍ³Ý</a> &gt;
<a href="http://k.daum.net/qna/list.html?category_id=QCA" class="bG12">ÇÁ·Î±×·¡¹Ö</a> &gt;
                <a href="http://k.daum.net/qna/list.html?category_id=QCA001" class="bG12"><b>C,C++</b></a>
                                    </td>
                                    <td nowrap style="position:relative" align='right'>
                                                <a href="http://k.daum.net/qna/answer.html?qid=54VGi" onFocus="this.blur();"><img src="http://i2.daumcdn.net/imgsrc.search/knowledge4/2009/new/btn_rss_rely.gif" width="87" height="33" alt="´äº¯ÇÏ±â" border='0'/></a>
                                    </td>
                                </tr>
                        </table>
                    ]]>
                </description>
                    <author>±è»ó±¸´Ô</author>
                <pubDate>24 Mar 2013 02:04:34 GMT</pubDate>
            </item>
            <item>
                <title>¾È³çÇÏ¼¼¿ä C¾ð¾î °£´ÜÇÑ ¹®Á¦ Áú¹®ÀÔ´Ï´Ù.</title>
                <link>http://k.daum.net/qna/view.html?qid=54UCL</link>
                <category>ÄÄÇ»ÅÍ,ÀÎÅÍ³Ý > ÇÁ·Î±×·¡¹Ö > C,C++</category>
                <description>
                    <![CDATA[
                        <table width=100% cellspacing='1' cellpadding='5' border='0' bgcolor='#ffffff' style='margin-right:10px;'>
                            <tbody>
                                <tr>
                                    <td width=100% bgcolor='#ffffff'>
                                    <SPAN style="FONT-SIZE: 10pt">¿©ÅÂ±îÁö ¹è¿î°Å º¹½ÀÁßÀÎµ¥¿ä</SPAN><BR><SPAN style="FONT-SIZE: 10pt">&nbsp;<BR></SPAN><SPAN style="FONT-SIZE: 10pt">#include &lt;stdio.h&gt;</SPAN><BR><SPAN style="FONT-SIZE: 10pt">void main()</SPAN><BR><SPAN style="FONT-SIZE: 10pt">{</SPAN><BR><SPAN style="FONT-SIZE: 10pt">&nbsp;int i;</SPAN><BR><SPAN style="FONT-SIZE: 10pt">&nbsp;printf("Á¤¼ö¸¦ ÀÔ·ÂÇÏ½Ã¿ä : ");</SPAN><BR><SPAN style="FONT-SIZE: 10pt">&nbsp;scanf("%d", &amp;i);</SPAN><BR><SPAN style="FONT-SIZE: 10pt">&nbsp;if((i%2) == 0){&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;--- ÀÌºÎºÐ¿¡¼­ ¿Ö&nbsp;&nbsp;if(i%2 = 0)&nbsp;&nbsp;ÀÌ·¸°Ô´Â ¾ÈµÇ³ª¿ä??&nbsp;</SPAN><BR><SPAN style="FONT-SIZE: 10pt">&nbsp;&nbsp;printf("%d´Â Â¦¼ö ÀÔ´Ï´Ù.\n", i);&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;±×¸®°í if(i%2 == 0) ÀÌ·¸°Ô ÇØµµ µÇ´Â°Å ¾Æ´Ñ°¡¿ä??<BR></SPAN><SPAN style="FONT-SIZE: 10pt">&nbsp;else</SPAN><BR><SPAN style="FONT-SIZE: 10pt">&nbsp;&nbsp;printf("%d´Â È¦¼ö ÀÔ´Ï´Ù.\n", i);</SPAN><BR><SPAN style="FONT-SIZE: 10pt">&nbsp;}</SPAN><BR><SPAN style="FONT-SIZE: 10pt">}</SPAN><BR>&nbsp;<BR><SPAN style="FONT-SIZE: 10pt">ÀÚ²Ù error C2106: '=' : left operand must be l-value ÀÌ·± ¿¡·¯°¡ ³³´Ï´Ù...</SPAN><BR>&nbsp;<BR>&nbsp;<BR>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    <table width=100% border='0' cellpadding='0' cellspacing='0'>
                    <tr>
                    <td align='left' valign='top'>
                                <tr>
                                    <td nowrap style="position:relative" align='left'>
<a href="http://k.daum.net/qna/qna_index.html" class="bG12">Q&A Áö½Ä</a> &gt;
<a href="http://k.daum.net/qna/list.html?category_id=QC" class="bG12">ÄÄÇ»ÅÍ,ÀÎÅÍ³Ý</a> &gt;
<a href="http://k.daum.net/qna/list.html?category_id=QCA" class="bG12">ÇÁ·Î±×·¡¹Ö</a> &gt;
                <a href="http://k.daum.net/qna/list.html?category_id=QCA001" class="bG12"><b>C,C++</b></a>
                                    </td>
                                    <td nowrap style="position:relative" align='right'>
                                                <a href="http://k.daum.net/qna/answer.html?qid=54UCL" onFocus="this.blur();"><img src="http://i2.daumcdn.net/imgsrc.search/knowledge4/2009/new/btn_rss_rely.gif" width="87" height="33" alt="´äº¯ÇÏ±â" border='0'/></a>
                                    </td>
                                </tr>
                        </table>
                    ]]>
                </description>
                    <author>Cruel Guy´Ô</author>
                <pubDate>23 Mar 2013 09:17:35 GMT</pubDate>
            </item>
    </channel>
</rss>
