<p style="margin:0px;padding:0px;"><font face="나눔고딕, NanumGothic, sans-serif"><span style="font-size:13.3333330154419px;line-height:20px;white-space:pre;">#ifndef ABS #define ABS( x ) (( ( x ) >= 0 )? (x) : -(x)) #endif</span></font></p> <p style="margin:0px;padding:0px;line-height:20px;font-family:'나눔고딕', NanumGothic, sans-serif;font-size:13.3333330154419px;"><span style="white-space:pre;"> </span>for (length = 1; length < 15; length++)</p> <p style="margin:0px;padding:0px;line-height:20px;font-family:'나눔고딕', NanumGothic, sans-serif;font-size:13.3333330154419px;"><span style="white-space:pre;"> </span>{</p> <p style="margin:0px;padding:0px;line-height:20px;font-family:'나눔고딕', NanumGothic, sans-serif;font-size:13.3333330154419px;"><span style="white-space:pre;"> </span>temp = Sorting_Buf[length];</p> <p style="margin:0px;padding:0px;line-height:20px;font-family:'나눔고딕', NanumGothic, sans-serif;font-size:13.3333330154419px;"><span style="white-space:pre;"> </span>for (compare = length -1; compare >= 0 && Sorting_Buf[compare] > temp; compare--)</p> <p style="margin:0px;padding:0px;line-height:20px;font-family:'나눔고딕', NanumGothic, sans-serif;font-size:13.3333330154419px;"><span style="white-space:pre;"> </span>{</p> <p style="margin:0px;padding:0px;line-height:20px;font-family:'나눔고딕', NanumGothic, sans-serif;font-size:13.3333330154419px;"><span style="white-space:pre;"> </span>Sorting_Buf[compare +1] = Sorting_Buf[compare];</p> <p style="margin:0px;padding:0px;line-height:20px;font-family:'나눔고딕', NanumGothic, sans-serif;font-size:13.3333330154419px;"><span style="white-space:pre;"> </span>}</p> <p style="margin:0px;padding:0px;line-height:20px;font-family:'나눔고딕', NanumGothic, sans-serif;font-size:13.3333330154419px;"><span style="white-space:pre;"> </span>Sorting_Buf[compare + 1] = temp;</p> <p style="margin:0px;padding:0px;line-height:20px;font-family:'나눔고딕', NanumGothic, sans-serif;font-size:13.3333330154419px;"><span style="white-space:pre;"> </span>}</p> <p style="margin:0px;padding:0px;line-height:20px;font-family:'나눔고딕', NanumGothic, sans-serif;font-size:13.3333330154419px;">삽입정렬인데요..</p> <p style="margin:0px;padding:0px;line-height:20px;font-family:'나눔고딕', NanumGothic, sans-serif;font-size:13.3333330154419px;">동작잘됩니다.. Sorting이 잘되요~~ 근데 Sorting 되는것을 정수가아니라 절대값으로 Sorting 할려고~ </p> <p style="margin:0px;padding:0px;line-height:20px;font-family:'나눔고딕', NanumGothic, sans-serif;font-size:13.3333330154419px;">이코드에서 </p> <p style="margin:0px;padding:0px;line-height:20px;font-family:'나눔고딕', NanumGothic, sans-serif;font-size:13.3333330154419px;"><br></p> <p style="margin:0px;padding:0px;line-height:20px;font-family:'나눔고딕', NanumGothic, sans-serif;font-size:13.3333330154419px;"><span style="white-space:pre;"> </span>for (length = 1; length < 15; length++)</p> <p style="margin:0px;padding:0px;line-height:20px;font-family:'나눔고딕', NanumGothic, sans-serif;font-size:13.3333330154419px;"><span style="white-space:pre;"> </span>{</p> <p style="margin:0px;padding:0px;line-height:20px;font-family:'나눔고딕', NanumGothic, sans-serif;font-size:13.3333330154419px;"><span style="white-space:pre;"> </span>temp = Sorting_Buf[length];</p> <p style="margin:0px;padding:0px;line-height:20px;font-family:'나눔고딕', NanumGothic, sans-serif;font-size:13.3333330154419px;"><span style="white-space:pre;"> </span>for (compare = length -1; compare >= 0 && <span style="background-color:#ff0000;">ABS(Sorting_Buf[compare]) > ABS(temp)</span>; compare--)</p> <p style="margin:0px;padding:0px;line-height:20px;font-family:'나눔고딕', NanumGothic, sans-serif;font-size:13.3333330154419px;"><span style="white-space:pre;"> </span>{</p> <p style="margin:0px;padding:0px;line-height:20px;font-family:'나눔고딕', NanumGothic, sans-serif;font-size:13.3333330154419px;"><span style="white-space:pre;"> </span>Sorting_Buf[compare +1] = Sorting_Buf[compare];</p> <p style="margin:0px;padding:0px;line-height:20px;font-family:'나눔고딕', NanumGothic, sans-serif;font-size:13.3333330154419px;"><span style="white-space:pre;"> </span>}</p> <p style="margin:0px;padding:0px;line-height:20px;font-family:'나눔고딕', NanumGothic, sans-serif;font-size:13.3333330154419px;"><span style="white-space:pre;"> </span>Sorting_Buf[compare + 1] = temp;</p> <p style="margin:0px;padding:0px;line-height:20px;font-family:'나눔고딕', NanumGothic, sans-serif;font-size:13.3333330154419px;"><span style="white-space:pre;"> </span>}</p> <p style="margin:0px;padding:0px;line-height:20px;font-family:'나눔고딕', NanumGothic, sans-serif;font-size:13.3333330154419px;"><br></p> <p style="margin:0px;padding:0px;line-height:20px;font-family:'나눔고딕', NanumGothic, sans-serif;font-size:13.3333330154419px;">이렇게 바꾸면 MCU가 죽습니다. 하하하하하하하 뭐지~!?</p>
<a href="http://activexxx.mooo.com/ouavatar/ouavatar_menu.php" target="_blank"><img src="http://activexxx.mooo.com/ouavatar/ouavatar.php?start=true&language=ko_kr&text_direction=ltr&mn=8276&about1=(+%CD%A1%C2%B0+%CD%9C%CA%96+%CD%A1%C2%B0)&about2=%EC%98%A4%EB%B9%A0%ED%95%9C%EB%B2%88+%EB%AF%BF%EC%96%B4%EB%B4%90&nick_icon=star&star_color=0056ab&background_color=00023b&text_color=ffffff&about_color=94d2ff&body_num=1&body_color=A52A2A&oumark_color=FF8C00&oumark_gloss_opacity=30&squid_num=1&squid_left_direction=down&squid_right_direction=down&skin_color=ffb273&hair_num=1&hair_color=450000&blush_num=1&blush_color=ff8973&brow_num=1&brow_color=450000&eyes_num=1&eyes_color=FFFFFF&pupil_color=450000&glasses_num=0&glasses_border_color=000000&glasses_lens_color=ADD8E6&glasses_opacity=50&nose_num=1&nose_color=450000&mouth_num=1&mouth_color=7B220B&tongue_color=FF6B70&teeth_color=FFFFFF&bottom_color=FF6B70&bottom_num=1&rotate=0&crop=0&hyperlink=http%3A%2F%2Factivexxx.mooo.com%2Fouavatar%2Fouavatar_menu.php&end=true&isold&.png" alt="오늘의유머 꼬릿말 서비스 by ActiveXXX"></a>
댓글 분란 또는 분쟁 때문에 전체 댓글이 블라인드 처리되었습니다.