<div class="colorscripter-code" style="color:rgb(1,1,1);overflow:auto;font-family:Consolas, 'Liberation Mono', Menlo, Courier, monospace;"> <table class="colorscripter-code-table" style="margin:0px;padding:0px;background-color:rgb(250,250,250);" cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:6px;border-right-color:rgb(229,229,229);border-right-width:2px;border-right-style:solid;"> <div style="margin:0px;padding:0px;text-align:right;color:rgb(102,102,102);line-height:130%;font-family:Consolas, 'Liberation Mono', Menlo, Courier, monospace;"> <div style="line-height:130%;">1</div> <div style="line-height:130%;">2</div> <div style="line-height:130%;">3</div> <div style="line-height:130%;">4</div> <div style="line-height:130%;">5</div> <div style="line-height:130%;">6</div> <div style="line-height:130%;">7</div> <div style="line-height:130%;">8</div> <div style="line-height:130%;">9</div> <div style="line-height:130%;">10</div> <div style="line-height:130%;">11</div> <div style="line-height:130%;">12</div> <div style="line-height:130%;">13</div> <div style="line-height:130%;">14</div> <div style="line-height:130%;">15</div> <div style="line-height:130%;">16</div> <div style="line-height:130%;">17</div> <div style="line-height:130%;">18</div> <div style="line-height:130%;">19</div> <div style="line-height:130%;">20</div> <div style="line-height:130%;">21</div></div></td> <td style="padding:6px 0px;"> <div style="margin:0px;padding:0px;color:rgb(1,1,1);line-height:130%;font-family:Consolas, 'Liberation Mono', Menlo, Courier, monospace;"> <div style="padding:0px 6px;line-height:130%;white-space:pre;"><span style="color:rgb(0,134,179);">#include</span> <span style="color:rgb(1,1,1);"></span><span style="color:rgb(167,29,93);"><</span>stdio.h<span style="color:rgb(1,1,1);"></span><span style="color:rgb(167,29,93);">></span></div> <div style="padding:0px 6px;line-height:130%;white-space:pre;"> </div> <div style="padding:0px 6px;line-height:130%;white-space:pre;"><span style="color:rgb(167,29,93);">typedef</span> <span style="color:rgb(167,29,93);">struct</span> student</div> <div style="padding:0px 6px;line-height:130%;white-space:pre;">{</div> <div style="padding:0px 6px;line-height:130%;white-space:pre;"> <span style="color:rgb(6,109,226);">char</span> name[<span style="color:rgb(0,153,204);">5</span>];</div> <div style="padding:0px 6px;line-height:130%;white-space:pre;"> <span style="color:rgb(6,109,226);">int</span> id[<span style="color:rgb(0,153,204);">5</span>];</div> <div style="padding:0px 6px;line-height:130%;white-space:pre;"> <span style="color:rgb(6,109,226);">int</span> year[<span style="color:rgb(0,153,204);">5</span>];</div> <div style="padding:0px 6px;line-height:130%;white-space:pre;"> <span style="color:rgb(6,109,226);">int</span> age[<span style="color:rgb(0,153,204);">5</span>];</div> <div style="padding:0px 6px;line-height:130%;white-space:pre;">}STUDENT;</div> <div style="padding:0px 6px;line-height:130%;white-space:pre;"> </div> <div style="padding:0px 6px;line-height:130%;white-space:pre;"> </div> <div style="padding:0px 6px;line-height:130%;white-space:pre;">main()</div> <div style="padding:0px 6px;line-height:130%;white-space:pre;">{ </div> <div style="padding:0px 6px;line-height:130%;white-space:pre;"> <span style="color:rgb(6,109,226);">int</span> i;</div> <div style="padding:0px 6px;line-height:130%;white-space:pre;"> STUDENT <span style="color:rgb(6,109,226);">std</span>[<span style="color:rgb(0,153,204);">5</span>]<span style="color:rgb(1,1,1);"></span><span style="color:rgb(167,29,93);">=</span>{{<span style="color:rgb(99,163,92);">"lee"</span>,<span style="color:rgb(0,153,204);">1</span>,<span style="color:rgb(0,153,204);">1</span>,<span style="color:rgb(0,153,204);">20</span>},{<span style="color:rgb(99,163,92);">"park"</span>,<span style="color:rgb(0,153,204);">1</span>,<span style="color:rgb(0,153,204);">1</span>,<span style="color:rgb(0,153,204);">21</span>},{<span style="color:rgb(99,163,92);">"baek"</span>,<span style="color:rgb(0,153,204);">2</span>,<span style="color:rgb(0,153,204);">1</span>,<span style="color:rgb(0,153,204);">22</span>},{<span style="color:rgb(99,163,92);">"bae"</span>,<span style="color:rgb(0,153,204);">3</span>,<span style="color:rgb(0,153,204);">2</span>,<span style="color:rgb(0,153,204);">23</span>},{<span style="color:rgb(99,163,92);">"kim"</span>,<span style="color:rgb(0,153,204);">3</span>,<span style="color:rgb(0,153,204);">3</span>,<span style="color:rgb(0,153,204);">24</span>}}; </div> <div style="padding:0px 6px;line-height:130%;white-space:pre;"> </div> <div style="padding:0px 6px;line-height:130%;white-space:pre;"> <span style="color:rgb(167,29,93);">for</span>(i<span style="color:rgb(1,1,1);"></span><span style="color:rgb(167,29,93);">=</span><span style="color:rgb(0,153,204);">0</span>;i<span style="color:rgb(1,1,1);"></span><span style="color:rgb(167,29,93);"><</span><span style="color:rgb(0,153,204);">5</span>;i<span style="color:rgb(1,1,1);"></span><span style="color:rgb(167,29,93);">+</span><span style="color:rgb(1,1,1);"></span><span style="color:rgb(167,29,93);">+</span>)</div> <div style="padding:0px 6px;line-height:130%;white-space:pre;"> {</div> <div style="padding:0px 6px;line-height:130%;white-space:pre;"> <span style="color:rgb(6,109,226);">printf</span>(<span style="color:rgb(99,163,92);">"Name : %s\nid : %d\nyear : %d\nage : %d\n"</span>,<span style="color:rgb(6,109,226);">std</span>[i].name,<span style="color:rgb(6,109,226);">std</span>[i].id,<span style="color:rgb(6,109,226);">std</span>[i].year,<span style="color:rgb(6,109,226);">std</span>[i].age);</div> <div style="padding:0px 6px;line-height:130%;white-space:pre;"> }</div> <div style="padding:0px 6px;line-height:130%;white-space:pre;">}</div></div> <div style="text-align:right;font-size:9px;font-style:italic;margin-top:-13px;margin-right:5px;"><a style="color:rgb(229,229,229);text-decoration:none;" href="http://colorscripter.com/info#e" target="_blank">Colored by Color Scripter</a></div></td> <td style="padding:0px 2px 4px 0px;vertical-align:bottom;"><a style="color:rgb(255,255,255);text-decoration:none;" href="http://colorscripter.com/info#e" target="_blank"><span style="padding:1px;color:rgb(255,255,255);font-size:9px;background-color:rgb(229,229,229);">cs</span></a></td></tr></tbody></table></div> <div> </div> <div> </div> <div>여기서 왜 네임만 제대로 나오고 나머지 값들은 왜 주소값??같이 나오는건가요..?</div>
댓글 분란 또는 분쟁 때문에 전체 댓글이 블라인드 처리되었습니다.