锘??xml version="1.0" encoding="utf-8" standalone="yes"?>久久成人精品视频,久久久久一本毛久久久,久久精品国产91久久麻豆自制http://m.shnenglu.com/xlsdg/archive/2014/07/26/207808.htmlxLsDgxLsDgSat, 26 Jul 2014 00:21:00 GMThttp://m.shnenglu.com/xlsdg/archive/2014/07/26/207808.htmlhttp://m.shnenglu.com/xlsdg/comments/207808.htmlhttp://m.shnenglu.com/xlsdg/archive/2014/07/26/207808.html#Feedback1http://m.shnenglu.com/xlsdg/comments/commentRss/207808.htmlhttp://m.shnenglu.com/xlsdg/services/trackbacks/207808.html  1 #include <stdio.h>
  2 #include <stdlib.h>
  3 #include <string.h>
  4 
  5 #define MAX_BIT ( 255u )
  6 
  7 char* bignum_add( char *a, char *b, char *c )
  8 {
  9     char *pA = NULL, *pB = NULL, *pC = NULL, d = 0;
 10 
 11     if ( strlen( a ) > strlen( b ) ) {
 12         pA = a;
 13         pB = b;
 14 
 15     } else {
 16         pA = b;
 17         pB = a;
 18     }
 19 
 20     for ( pC = c; *pA; pA++, pB++, pC++ ) {
 21         if ( *pB ) {
 22             *pC = ( *pA - '0' ) + ( *pB - '0' ) + d;
 23 
 24         } else {
 25             *pC = ( *pA - '0' ) + d;
 26         }
 27 
 28         if ( 9 < *pC ) {
 29             d = *pC / 10;
 30             *pC %= 10;
 31 
 32         } else {
 33             d = 0;
 34         }
 35 
 36         *pC += '0';
 37     }
 38 
 39     if ( 0 < d ) {
 40         *pC = d + '0';
 41     }
 42 
 43     return c;
 44 }
 45 
 46 char* bignum_sub( char *a, char *b, char *c )
 47 {
 48     char *pA = NULL, *pB = NULL, *pC = NULL, d = 0, flag = 0;
 49 
 50     if ( strlen( a ) >= strlen( b ) ) {
 51         pA = a;
 52         pB = b;
 53         flag = 1;
 54 
 55     } else {
 56         pA = b;
 57         pB = a;
 58         flag = -1;
 59     }
 60 
 61     for ( pC = c; *pA; pA++, pB++, pC++ ) {
 62         *pC = ( *pA - '0' ) + d;
 63 
 64         if ( *pB ) {
 65             *pC = *pC - ( *pB - '0' );
 66         }
 67 
 68         if ( 0 > *pC ) {
 69             if ( *( pA + 1 ) ) {
 70                 d = -1;
 71                 *pC += 10;
 72 
 73             } else {
 74                 *pC = -*pC;
 75                 flag = -1;
 76             }
 77 
 78         } else {
 79             d = 0;
 80         }
 81 
 82         *pC += '0';
 83     }
 84 
 85     if ( 0 > flag ) {
 86         *pC = '-';
 87     }
 88 
 89     return c;
 90 }
 91 
 92 char* bignum_mul( char *a, char *b, char *c )
 93 {
 94     char *pA = a, *pB = b, *pC = c, d = 0;
 95 
 96     for ( pB = b; *pB; pB++ ) {
 97         for ( pA = a, pC = c + ( pB - b ), d = 0; *pA; pA++, pC++ ) {
 98             if ( *pC ) {
 99                 *pC = ( *pC - '0' ) + ( *pA - '0' ) * ( *pB - '0' ) + d;
100 
101             } else {
102                 *pC = ( *pA - '0' ) * ( *pB - '0' ) + d;
103             }
104 
105             if ( 9 < *pC ) {
106                 d = *pC / 10;
107                 *pC %= 10;
108 
109             } else {
110                 d = 0;
111             }
112 
113             *pC += '0';
114         }
115 
116         if ( 0 < d ) {
117             *pC = d + '0';
118         }
119     }
120 
121     return c;
122 }
123 
124 char* bignum_reverse( char *a )
125 {
126     char *p1 = a, *p2 = NULL;
127 
128     for ( p2 = a + strlen( a ) - 1; p1 < p2; p1++, p2-- ) {
129         *p1 ^= *p2;
130         *p2 ^= *p1;
131         *p1 ^= *p2;
132     }
133 
134     return a;
135 }
136 
137 int main()
138 {
139     char *pA = NULL, *pB = NULL, *pC = NULL;
140 
141     pA = ( char* )malloc( MAX_BIT * sizeofchar ) );
142     pB = ( char* )malloc( MAX_BIT * sizeofchar ) );
143     pC = ( char* )malloc( MAX_BIT * sizeofchar ) * 2 );
144 
145     memset( pA, 0, MAX_BIT * sizeofchar ) );
146     printf( "A=" ); scanf( "%s", pA );
147     pA = bignum_reverse( pA );
148 
149     memset( pB, 0, MAX_BIT * sizeofchar ) );
150     printf( "B=" ); scanf( "%s", pB );
151     pB = bignum_reverse( pB );
152 
153     memset( pC, 0, MAX_BIT * sizeofchar ) * 2 );
154     printf( "--------------------------------\n" );
155     pC = bignum_add( pA, pB, pC );
156 
157     pC = bignum_reverse( pC );
158     printf( "A+B=%s\n", pC );
159 
160     memset( pC, 0, MAX_BIT * sizeofchar ) * 2 );
161     printf( "--------------------------------\n" );
162     pC = bignum_sub( pA, pB, pC );
163 
164     pC = bignum_reverse( pC );
165     printf( "A-B=%s\n", pC );
166 
167     memset( pC, 0, MAX_BIT * sizeofchar ) * 2 );
168     printf( "--------------------------------\n" );
169     pC = bignum_mul( pA, pB, pC );
170 
171     pC = bignum_reverse( pC );
172     printf( "A*B=%s\n", pC );
173 
174     return 0;
175 }
176 

xLsDg 2014-07-26 08:21 鍙戣〃璇勮
]]>
瀛楃涓插嚱鏁?/title><link>http://m.shnenglu.com/xlsdg/archive/2014/07/19/207716.html</link><dc:creator>xLsDg</dc:creator><author>xLsDg</author><pubDate>Sat, 19 Jul 2014 04:29:00 GMT</pubDate><guid>http://m.shnenglu.com/xlsdg/archive/2014/07/19/207716.html</guid><wfw:comment>http://m.shnenglu.com/xlsdg/comments/207716.html</wfw:comment><comments>http://m.shnenglu.com/xlsdg/archive/2014/07/19/207716.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://m.shnenglu.com/xlsdg/comments/commentRss/207716.html</wfw:commentRss><trackback:ping>http://m.shnenglu.com/xlsdg/services/trackbacks/207716.html</trackback:ping><description><![CDATA[<div style="background-color:#eeeeee;font-size:13px;border:1px solid #CCCCCC;padding-right: 5px;padding-bottom: 4px;padding-left: 4px;padding-top: 4px;width: 98%;word-break:break-all"><!--<br /><br />Code highlighting produced by Actipro CodeHighlighter (freeware)<br />http://www.CodeHighlighter.com/<br /><br />--><span style="color: #008080; "> 1</span> #include <stdio.h><br /><span style="color: #008080; "> 2</span> #include <stdlib.h><br /><span style="color: #008080; "> 3</span> <br /><span style="color: #008080; "> 4</span> <span style="color: #0000FF; ">int</span> strlen( <span style="color: #0000FF; ">const</span> <span style="color: #0000FF; ">char</span> *str )<br /><span style="color: #008080; "> 5</span> {<br /><span style="color: #008080; "> 6</span>     <span style="color: #0000FF; ">const</span> <span style="color: #0000FF; ">char</span> *s = str;<br /><span style="color: #008080; "> 7</span> <br /><span style="color: #008080; "> 8</span>     <span style="color: #0000FF; ">while</span> ( *++s );<br /><span style="color: #008080; "> 9</span> <br /><span style="color: #008080; ">10</span>     <span style="color: #0000FF; ">return</span> ( s - str );<br /><span style="color: #008080; ">11</span> }<br /><span style="color: #008080; ">12</span> <br /><span style="color: #008080; ">13</span> <span style="color: #0000FF; ">char</span>* strcpy( <span style="color: #0000FF; ">char</span> *to, <span style="color: #0000FF; ">const</span> <span style="color: #0000FF; ">char</span> *from )<br /><span style="color: #008080; ">14</span> {<br /><span style="color: #008080; ">15</span>     <span style="color: #0000FF; ">char</span> *str = to;<br /><span style="color: #008080; ">16</span> <br /><span style="color: #008080; ">17</span>     <span style="color: #0000FF; ">while</span> ( *str++ = *from++ );<br /><span style="color: #008080; ">18</span> <br /><span style="color: #008080; ">19</span>     <span style="color: #0000FF; ">return</span> to;<br /><span style="color: #008080; ">20</span> }<br /><span style="color: #008080; ">21</span> <br /><span style="color: #008080; ">22</span> <span style="color: #0000FF; ">int</span> main()<br /><span style="color: #008080; ">23</span> {<br /><span style="color: #008080; ">24</span>     <span style="color: #0000FF; ">char</span> str1[] = "Hello World!", str2[15] = "";<br /><span style="color: #008080; ">25</span> <br /><span style="color: #008080; ">26</span>     printf( "str1=%s, str1len=%d\n", str1, strlen( str1 ) );<br /><span style="color: #008080; ">27</span> <br /><span style="color: #008080; ">28</span>     strcpy( str2, str1 );<br /><span style="color: #008080; ">29</span>     printf( "str2=%s, str2len=%d\n", str2, strlen( str2 ) );<br /><span style="color: #008080; ">30</span> <br /><span style="color: #008080; ">31</span>     <span style="color: #0000FF; ">return</span> 0;<br /><span style="color: #008080; ">32</span> }<br /><span style="color: #008080; ">33</span> </div><img src ="http://m.shnenglu.com/xlsdg/aggbug/207716.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://m.shnenglu.com/xlsdg/" target="_blank">xLsDg</a> 2014-07-19 12:29 <a href="http://m.shnenglu.com/xlsdg/archive/2014/07/19/207716.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>鐩稿叧鎺掑簭綆楁硶http://m.shnenglu.com/xlsdg/archive/2014/07/19/207714.htmlxLsDgxLsDgSat, 19 Jul 2014 04:27:00 GMThttp://m.shnenglu.com/xlsdg/archive/2014/07/19/207714.htmlhttp://m.shnenglu.com/xlsdg/comments/207714.htmlhttp://m.shnenglu.com/xlsdg/archive/2014/07/19/207714.html#Feedback0http://m.shnenglu.com/xlsdg/comments/commentRss/207714.htmlhttp://m.shnenglu.com/xlsdg/services/trackbacks/207714.html  1 #include <stdio.h>
  2 #include <stdlib.h>
  3 
  4 #define MAXSIZE 10
  5 
  6 typedef struct {
  7     int r[MAXSIZE + 1];
  8     int length;
  9 } SqList;
 10 
 11 void printL( SqList *L )
 12 {
 13     int i;
 14 
 15     for ( i = 1; i <= L->length; i++ ) {
 16         printf( "%d ", L->r[i] );
 17     }
 18 
 19     printf( "\n" );
 20 }
 21 
 22 void swap( SqList *L, int i, int j )
 23 {
 24     //printf( "%d ---> %d\n", L->r[i], L->r[j] );
 25     L->r[i] ^= L->r[j];
 26     L->r[j] ^= L->r[i];
 27     L->r[i] ^= L->r[j];
 28     printL( L );
 29 }
 30 
 31 void BubbleSort0( SqList *L )
 32 {
 33     int i, j;
 34 
 35     for ( i = 1; i < L->length; i++ ) {
 36         for ( j = i + 1; j <= L->length; j++ ) {
 37             if ( L->r[i] > L->r[j] ) {
 38                 swap( L, i, j );
 39             }
 40         }
 41     }
 42 }
 43 
 44 void BubbleSort1( SqList *L )
 45 {
 46     int i, j;
 47 
 48     for ( i = 1; i < L->length; i++ ) {
 49         for ( j = L->length - 1; j >= i; j-- ) {
 50             if ( L->r[j] > L->r[j + 1] ) {
 51                 swap( L, j, j + 1 );
 52             }
 53         }
 54     }
 55 }
 56 
 57 void BubbleSort2( SqList *L )
 58 {
 59     int i, j, flag = 1;
 60 
 61     for ( i = 1; i < L->length && flag; i++ ) {
 62         for ( j = L->length - 1, flag = 0; j >= i; j-- ) {
 63             if ( L->r[j] > L->r[j + 1] ) {
 64                 swap( L, j, j + 1 );
 65                 flag = 1;
 66             }
 67         }
 68     }
 69 }
 70 
 71 void SelectSort( SqList *L )
 72 {
 73     int i, j, min;
 74 
 75     for ( i = 1; i < L->length; i++ ) {
 76         min = i;
 77 
 78         for ( j = i + 1; j <= L->length; j++ ) {
 79             if ( L->r[min] > L->r[j] ) {
 80                 min = j;
 81             }
 82         }
 83 
 84         if ( i != min ) {
 85             swap( L, i, min );
 86         }
 87     }
 88 }
 89 
 90 void InsertSort( SqList *L )
 91 {
 92     int i, j;
 93 
 94     for ( i = 2; i <= L->length; i++ ) {
 95         if ( L->r[i] < L->r[i - 1] ) {
 96             L->r[0] = L->r[i];
 97 
 98             for ( j = i - 1; L->r[j] > L->r[0]; j-- ) {
 99                 L->r[j + 1] = L->r[j];
100             }
101 
102             L->r[j + 1] = L->r[0];
103             printL( L );
104         }
105     }
106 }
107 
108 void ShellSort( SqList *L )
109 {
110     int i, j, increment = L->length;
111 
112     do {
113         increment = increment / 3 + 1;
114 
115         for ( i = increment + 1; i <= L->length; i++ ) {
116             if ( L->r[i] < L->r[i - increment] ) {
117                 L->r[0] = L->r[i];
118 
119                 for ( j = i - increment; j > 0 && L->r[0] < L->r[j]; j -= increment ) {
120                     L->r[j + increment] = L->r[j];
121                 }
122 
123                 L->r[j + increment] = L->r[0];
124                 printL( L );
125             }
126         }
127     } while ( increment > 1 );
128 }
129 
130 int main()
131 {
132     SqList L;
133 
134     L.length = 9;
135 
136     L.r[0] = 0;
137     L.r[1] = 9;
138     L.r[2] = 1;
139     L.r[3] = 5;
140     L.r[4] = 8;
141     L.r[5] = 3;
142     L.r[6] = 7;
143     L.r[7] = 4;
144     L.r[8] = 6;
145     L.r[9] = 2;
146 
147     printL( &L );
148     //BubbleSort0( &L );
149     //BubbleSort1( &L );
150     //BubbleSort2( &L );
151     //SelectSort( &L );
152     //InsertSort( &L );
153     ShellSort( &L );
154     printL( &L );
155 
156     return 0;
157 }
158 

xLsDg 2014-07-19 12:27 鍙戣〃璇勮
]]>
鍐掓場鎺掑簭http://m.shnenglu.com/xlsdg/archive/2014/07/19/207713.htmlxLsDgxLsDgSat, 19 Jul 2014 04:27:00 GMThttp://m.shnenglu.com/xlsdg/archive/2014/07/19/207713.htmlhttp://m.shnenglu.com/xlsdg/comments/207713.htmlhttp://m.shnenglu.com/xlsdg/archive/2014/07/19/207713.html#Feedback0http://m.shnenglu.com/xlsdg/comments/commentRss/207713.htmlhttp://m.shnenglu.com/xlsdg/services/trackbacks/207713.html 1 #include <stdio.h>
 2 #include <stdlib.h>
 3 
 4 void bubbleSort( int data[], int n )
 5 {
 6     int i, j, flag = 1, run = 0, swap = 0;
 7 
 8     for ( i = 0; i < n && flag; i++ ) {
 9         for ( j = 0, flag = 0; j < n - i - 1; j++ ) {
10             if ( data[j] > data[j + 1] ) {
11                 printf( "%d --> %d\n", data[j], data[j + 1] );
12                 flag = 1;
13                 data[j] ^= data[j + 1];
14                 data[j + 1] ^= data[j];
15                 data[j] ^= data[j + 1];
16                 swap++;
17             }
18             run++;
19         }
20     }
21 
22     printf( "[run=%d, swap=%d]\n", run, swap );
23 }
24 
25 void printData( int data[], int n )
26 {
27     int i;
28 
29     for ( i = 0; i < n; i++ ) {
30         printf( "%d ", data[i] );
31     }
32 
33     printf("\n");
34 }
35 
36 int main( int argc, const char *argv )
37 {
38     int data1[] = { 7, 4, 1, 0, 8, 5, 2, 9, 6, 3 };
39     int data2[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 };
40     int data3[] = { 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 };
41 
42     int dataLen = sizeof( data1 ) / sizeof( data1[0] );
43 
44     printData( data1, dataLen );
45     bubbleSort( data1, dataLen );
46     printData( data1, dataLen );
47     printf("\n");
48 
49     printData( data2, dataLen );
50     bubbleSort( data2, dataLen );
51     printData( data2, dataLen );
52     printf("\n");
53 
54     printData( data3, dataLen );
55     bubbleSort( data3, dataLen );
56     printData( data3, dataLen );
57     printf("\n");
58 
59     return 0;
60 }
61 

xLsDg 2014-07-19 12:27 鍙戣〃璇勮
]]>
鍥炲瀷鎵撳嵃鏁板瓧http://m.shnenglu.com/xlsdg/archive/2014/07/19/207712.htmlxLsDgxLsDgSat, 19 Jul 2014 04:25:00 GMThttp://m.shnenglu.com/xlsdg/archive/2014/07/19/207712.htmlhttp://m.shnenglu.com/xlsdg/comments/207712.htmlhttp://m.shnenglu.com/xlsdg/archive/2014/07/19/207712.html#Feedback0http://m.shnenglu.com/xlsdg/comments/commentRss/207712.htmlhttp://m.shnenglu.com/xlsdg/services/trackbacks/207712.html 1 #include <stdio.h>
 2 #include <stdlib.h>
 3 
 4 #define MAX_RANGE 10
 5 
 6 int main()
 7 {
 8     char direction;
 9     int num[MAX_RANGE][MAX_RANGE], i, j, k;
10 
11     for ( i = 0; i < MAX_RANGE; i++ ) {
12         for ( j = 0; j < MAX_RANGE; j++ ) {
13             num[i][j] = -1;
14         }
15     }
16 
17     for ( i = 0, j = 0, k = 0, direction = 0; k < MAX_RANGE * MAX_RANGE; k++ ) {
18         if ( 0 <= i && i < MAX_RANGE && 0<= j && j < MAX_RANGE && -1 == num[i][j] ) {
19 
20         } else {
21             switch ( direction ) {
22                 case 0:
23                     i--;
24                     j++;
25                     direction = 1;
26                     break;
27                 case 1:
28                     i--;
29                     j--;
30                     direction = 2;
31                     break;
32                 case 2:
33                     i++;
34                     j--;
35                     direction = 3;
36                     break;
37                 case 3:
38                     i++;
39                     j++;
40                     direction = 0;
41                     break;
42             }
43 
44         }
45 
46         num[i][j] = k;
47 
48         switch ( direction ) {
49             case 0:
50                 i++;
51                 break;
52             case 1:
53                 j++;
54                 break;
55             case 2:
56                 i--;
57                 break;
58             case 3:
59                 j--;
60                 break;
61         }
62     }
63 
64     for ( i = 0; i < MAX_RANGE; i++ ) {
65         for ( j = 0; j < MAX_RANGE; j++ ) {
66             printf("%5d ", num[i][j] );
67         }
68         printf("\n");
69     }
70 
71     return 0;
72 }
73 

xLsDg 2014-07-19 12:25 鍙戣〃璇勮
]]>
閾捐〃鍫嗘爤闃熷垪http://m.shnenglu.com/xlsdg/archive/2014/07/19/207711.htmlxLsDgxLsDgSat, 19 Jul 2014 04:22:00 GMThttp://m.shnenglu.com/xlsdg/archive/2014/07/19/207711.htmlhttp://m.shnenglu.com/xlsdg/comments/207711.htmlhttp://m.shnenglu.com/xlsdg/archive/2014/07/19/207711.html#Feedback0http://m.shnenglu.com/xlsdg/comments/commentRss/207711.htmlhttp://m.shnenglu.com/xlsdg/services/trackbacks/207711.html  1 #include <stdio.h>  2 #include <stdlib.h> &nbs...  闃呰鍏ㄦ枃

xLsDg 2014-07-19 12:22 鍙戣〃璇勮
]]>
瀵繪壘絎?500涓笐鏁?/title><link>http://m.shnenglu.com/xlsdg/archive/2014/07/19/207710.html</link><dc:creator>xLsDg</dc:creator><author>xLsDg</author><pubDate>Sat, 19 Jul 2014 04:20:00 GMT</pubDate><guid>http://m.shnenglu.com/xlsdg/archive/2014/07/19/207710.html</guid><wfw:comment>http://m.shnenglu.com/xlsdg/comments/207710.html</wfw:comment><comments>http://m.shnenglu.com/xlsdg/archive/2014/07/19/207710.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://m.shnenglu.com/xlsdg/comments/commentRss/207710.html</wfw:commentRss><trackback:ping>http://m.shnenglu.com/xlsdg/services/trackbacks/207710.html</trackback:ping><description><![CDATA[<div style="background-color:#eeeeee;font-size:13px;border:1px solid #CCCCCC;padding-right: 5px;padding-bottom: 4px;padding-left: 4px;padding-top: 4px;width: 98%;word-break:break-all"><!--<br /><br />Code highlighting produced by Actipro CodeHighlighter (freeware)<br />http://www.CodeHighlighter.com/<br /><br />--><span style="color: #008080; "> 1</span> #include <stdio.h><br /><span style="color: #008080; "> 2</span> #include <stdlib.h><br /><span style="color: #008080; "> 3</span> <br /><span style="color: #008080; "> 4</span> unsigned <span style="color: #0000FF; ">long</span> getUglyNumber( unsigned <span style="color: #0000FF; ">long</span> index )<br /><span style="color: #008080; "> 5</span> {<br /><span style="color: #008080; "> 6</span>     unsigned <span style="color: #0000FF; ">long</span> *pMax = NULL, *pMax2 = NULL, *pMax3 = NULL, *pMax5 = NULL, *pUgly = NULL;<br /><span style="color: #008080; "> 7</span>     unsigned <span style="color: #0000FF; ">long</span> min = 0, max = 0, max2 = 0, max3 = 0, max5 = 0;<br /><span style="color: #008080; "> 8</span> <br /><span style="color: #008080; "> 9</span>     <span style="color: #0000FF; ">if</span>( 1 > index ) {<br /><span style="color: #008080; ">10</span>         <span style="color: #0000FF; ">return</span> ( unsigned <span style="color: #0000FF; ">long</span> )0;<br /><span style="color: #008080; ">11</span>     }<br /><span style="color: #008080; ">12</span> <br /><span style="color: #008080; ">13</span>     pUgly = ( unsigned <span style="color: #0000FF; ">long</span>* )malloc( ( size_t )index * <span style="color: #0000FF; ">sizeof</span>( unsigned <span style="color: #0000FF; ">long</span> ) );<br /><span style="color: #008080; ">14</span>     <span style="color: #0000FF; ">if</span> ( NULL == pUgly ) {<br /><span style="color: #008080; ">15</span>         <span style="color: #0000FF; ">return</span> ( unsigned <span style="color: #0000FF; ">long</span> )0;<br /><span style="color: #008080; ">16</span>     }<br /><span style="color: #008080; ">17</span> <br /><span style="color: #008080; ">18</span>     pMax = pMax2 = pMax3 = pMax5 = pUgly;<br /><span style="color: #008080; ">19</span>     *pUgly = 1;<br /><span style="color: #008080; ">20</span> <br /><span style="color: #008080; ">21</span>     <span style="color: #0000FF; ">while</span> ( pMax - pUgly < index - 1 ) {<br /><span style="color: #008080; ">22</span>         max2 = *pMax2 * 2;<br /><span style="color: #008080; ">23</span>         max3 = *pMax3 * 3;<br /><span style="color: #008080; ">24</span>         max5 = *pMax5 * 5;<br /><span style="color: #008080; ">25</span> <br /><span style="color: #008080; ">26</span>         min = ( max2 < max3 ) ? max2 : max3;<br /><span style="color: #008080; ">27</span> <br /><span style="color: #008080; ">28</span>         *( ++pMax ) = ( min < max5 ) ? min : max5;<br /><span style="color: #008080; ">29</span> <br /><span style="color: #008080; ">30</span>         <span style="color: #0000FF; ">while</span> ( *pMax2 * 2 <= *pMax ) ++pMax2;<br /><span style="color: #008080; ">31</span>         <span style="color: #0000FF; ">while</span> ( *pMax3 * 3 <= *pMax ) ++pMax3;<br /><span style="color: #008080; ">32</span>         <span style="color: #0000FF; ">while</span> ( *pMax5 * 5 <= *pMax ) ++pMax5;<br /><span style="color: #008080; ">33</span>     }<br /><span style="color: #008080; ">34</span> <br /><span style="color: #008080; ">35</span>     max = *pMax;<br /><span style="color: #008080; ">36</span> <br /><span style="color: #008080; ">37</span>     free( pUgly );<br /><span style="color: #008080; ">38</span> <br /><span style="color: #008080; ">39</span>     <span style="color: #0000FF; ">return</span> max;<br /><span style="color: #008080; ">40</span> }<br /><span style="color: #008080; ">41</span> <br /><span style="color: #008080; ">42</span> <span style="color: #0000FF; ">int</span> main()<br /><span style="color: #008080; ">43</span> {<br /><span style="color: #008080; ">44</span>     unsigned <span style="color: #0000FF; ">long</span> index = 1500;<br /><span style="color: #008080; ">45</span>     printf( "The No.%u ugly number is %u." , index, getUglyNumber( index ) );<br /><span style="color: #008080; ">46</span>     <span style="color: #0000FF; ">return</span> 0;<br /><span style="color: #008080; ">47</span> }<br /><span style="color: #008080; ">48</span> </div><img src ="http://m.shnenglu.com/xlsdg/aggbug/207710.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://m.shnenglu.com/xlsdg/" target="_blank">xLsDg</a> 2014-07-19 12:20 <a href="http://m.shnenglu.com/xlsdg/archive/2014/07/19/207710.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>璁$畻浜岃繘鍒?鐨勪釜鏁?/title><link>http://m.shnenglu.com/xlsdg/archive/2014/07/19/207709.html</link><dc:creator>xLsDg</dc:creator><author>xLsDg</author><pubDate>Sat, 19 Jul 2014 04:12:00 GMT</pubDate><guid>http://m.shnenglu.com/xlsdg/archive/2014/07/19/207709.html</guid><wfw:comment>http://m.shnenglu.com/xlsdg/comments/207709.html</wfw:comment><comments>http://m.shnenglu.com/xlsdg/archive/2014/07/19/207709.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://m.shnenglu.com/xlsdg/comments/commentRss/207709.html</wfw:commentRss><trackback:ping>http://m.shnenglu.com/xlsdg/services/trackbacks/207709.html</trackback:ping><description><![CDATA[<div style="background-color:#eeeeee;font-size:13px;border:1px solid #CCCCCC;padding-right: 5px;padding-bottom: 4px;padding-left: 4px;padding-top: 4px;width: 98%;word-break:break-all"><!--<br /><br />Code highlighting produced by Actipro CodeHighlighter (freeware)<br />http://www.CodeHighlighter.com/<br /><br />--><span style="color: #008080; "> 1</span> #include <stdio.h><br /><span style="color: #008080; "> 2</span> #include <stdlib.h><br /><span style="color: #008080; "> 3</span> <br /><span style="color: #008080; "> 4</span> <span style="color: #0000FF; ">int</span> BitCount1( unsigned <span style="color: #0000FF; ">int</span> n )<br /><span style="color: #008080; "> 5</span> {<br /><span style="color: #008080; "> 6</span>     unsigned <span style="color: #0000FF; ">int</span> c = 0;<br /><span style="color: #008080; "> 7</span> <br /><span style="color: #008080; "> 8</span>     <span style="color: #0000FF; ">for</span> ( c =0; n; n >>= 1 )<br /><span style="color: #008080; "> 9</span>         c += n & 1;<br /><span style="color: #008080; ">10</span> <br /><span style="color: #008080; ">11</span>     <span style="color: #0000FF; ">return</span> c ;<br /><span style="color: #008080; ">12</span> }<br /><span style="color: #008080; ">13</span> <br /><span style="color: #008080; ">14</span> <span style="color: #0000FF; ">int</span> BitCount2( unsigned <span style="color: #0000FF; ">int</span> num )<br /><span style="color: #008080; ">15</span> {<br /><span style="color: #008080; ">16</span>     <span style="color: #0000FF; ">int</span> count = 0;<br /><span style="color: #008080; ">17</span> <br /><span style="color: #008080; ">18</span>     <span style="color: #0000FF; ">while</span> ( num ) {<br /><span style="color: #008080; ">19</span>         count++;<br /><span style="color: #008080; ">20</span>         num = num & ( num - 1 );<br /><span style="color: #008080; ">21</span>     }<br /><span style="color: #008080; ">22</span> <br /><span style="color: #008080; ">23</span>     <span style="color: #0000FF; ">return</span> count;<br /><span style="color: #008080; ">24</span> }<br /><span style="color: #008080; ">25</span> <br /><span style="color: #008080; ">26</span> <span style="color: #0000FF; ">int</span> main()<br /><span style="color: #008080; ">27</span> {<br /><span style="color: #008080; ">28</span>     unsigned <span style="color: #0000FF; ">int</span> num = 99;<br /><span style="color: #008080; ">29</span> <br /><span style="color: #008080; ">30</span>     printf("%d has %d\n", num, BitCount2( num ) );<br /><span style="color: #008080; ">31</span> <br /><span style="color: #008080; ">32</span>     <span style="color: #0000FF; ">return</span> 0;<br /><span style="color: #008080; ">33</span> }<br /><span style="color: #008080; ">34</span> </div><img src ="http://m.shnenglu.com/xlsdg/aggbug/207709.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://m.shnenglu.com/xlsdg/" target="_blank">xLsDg</a> 2014-07-19 12:12 <a href="http://m.shnenglu.com/xlsdg/archive/2014/07/19/207709.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item></channel></rss> <footer> <div class="friendship-link"> <p>感谢您访问我们的网站,您可能还对以下资源感兴趣:</p> <a href="http://m.shnenglu.com/" title="精品视频久久久久">精品视频久久久久</a> <div class="friend-links"> </div> </div> </footer> <a href="http://www.wow-diamond.com.cn" target="_blank">99久久精品国产综合一区</a>| <a href="http://www.umw.net.cn" target="_blank">亚洲国产成人久久综合一区77</a>| <a href="http://www.zzouyi.cn" target="_blank">亚洲午夜无码久久久久</a>| <a href="http://www.lhstrip.cn" target="_blank">中文字幕无码免费久久</a>| <a href="http://www.123oye.cn" target="_blank">成人久久综合网</a>| <a href="http://www.kavpojie.cn" target="_blank">中文字幕久久亚洲一区</a>| <a href="http://www.chaohu8.cn" target="_blank">热re99久久精品国产99热</a>| <a href="http://www.tvjay.cn" target="_blank">亚洲午夜精品久久久久久app</a>| <a href="http://www.chabaibaike.cn" target="_blank">久久夜色精品国产欧美乱</a>| <a href="http://www.bjxcst.cn" target="_blank">91精品国产91久久久久久青草</a>| <a href="http://www.pouhai.cn" target="_blank">亚洲人成电影网站久久</a>| <a href="http://www.cn-yb.cn" target="_blank">久久99国产精品一区二区</a>| <a href="http://www.su26.cn" target="_blank">久久www免费人成看片</a>| <a href="http://www.hao266.cn" target="_blank">亚洲国产精品热久久</a>| <a href="http://www.swfun.com.cn" target="_blank">性做久久久久久久</a>| <a href="http://www.zhengulao.cn" target="_blank">手机看片久久高清国产日韩</a>| <a href="http://www.crs24.cn" target="_blank">AV无码久久久久不卡网站下载</a>| <a href="http://www.gdguangjie.cn" target="_blank">亚洲&#228;v永久无码精品天堂久久 </a>| <a href="http://www.91pang.cn" target="_blank">久久精品夜夜夜夜夜久久</a>| <a href="http://www.gonnts.cn" target="_blank">久久99精品九九九久久婷婷</a>| <a href="http://www.vvrj.cn" target="_blank">久久无码人妻一区二区三区</a>| <a href="http://www.cc5ujj.cn" target="_blank">久久乐国产综合亚洲精品</a>| <a href="http://www.dongzhounews.cn" target="_blank">99久久国产综合精品五月天喷水 </a>| <a href="http://www.ttyv.cn" target="_blank">蜜桃麻豆WWW久久囤产精品</a>| <a href="http://www.luben8151998.cn" target="_blank">国产精品成人99久久久久</a>| <a href="http://www.hf169.cn" target="_blank">久久精品夜夜夜夜夜久久</a>| <a href="http://www.vtdf.cn" target="_blank">日韩乱码人妻无码中文字幕久久</a>| <a href="http://www.airgig.net.cn" target="_blank">欧美久久久久久午夜精品</a>| <a href="http://www.buniaowan.cn" target="_blank">Xx性欧美肥妇精品久久久久久</a>| <a href="http://www.njvwt.cn" target="_blank">996久久国产精品线观看</a>| <a href="http://www.hdtnet.cn" target="_blank">嫩草伊人久久精品少妇AV</a>| <a href="http://www.jzxqbz.cn" target="_blank">久久国语露脸国产精品电影</a>| <a href="http://www.gzwy9.cn" target="_blank">久久久久久久久久久精品尤物 </a>| <a href="http://www.tpjqrj.cn" target="_blank">国产精品成人99久久久久 </a>| <a href="http://www.003kd.cn" target="_blank">Xx性欧美肥妇精品久久久久久</a>| <a href="http://www.ahgmxy.com.cn" target="_blank">无码国内精品久久人妻蜜桃 </a>| <a href="http://www.jyyyzxw.cn" target="_blank">69国产成人综合久久精品</a>| <a href="http://www.jbuz.cn" target="_blank">久久天堂AV综合合色蜜桃网</a>| <a href="http://www.wtxpxt.cn" target="_blank">久久久久久夜精品精品免费啦 </a>| <a href="http://www.mdeditor.cn" target="_blank">久久精品国产亚洲AV麻豆网站 </a>| <a href="http://www.chaoyuemobile.com.cn" target="_blank">国产91色综合久久免费</a>| <script> (function(){ var bp = document.createElement('script'); var curProtocol = window.location.protocol.split(':')[0]; if (curProtocol === 'https') { bp.src = 'https://zz.bdstatic.com/linksubmit/push.js'; } else { bp.src = 'http://push.zhanzhang.baidu.com/push.js'; } var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(bp, s); })(); </script> </body>