Changeset 38172
- Timestamp:
- 08/05/10 00:07:21 (3 years ago)
- Files:
-
- 1 modified
-
lang/cplusplus/libtable/table.h (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
lang/cplusplus/libtable/table.h
r37154 r38172 39 39 void resize(int w, int h) { 40 40 //loop flag 41 int i ;41 int i = 0; 42 42 //present direction 43 43 int now_x, now_y; … … 54 54 now_x = i % width; 55 55 now_y = i / width; 56 if(now_x < w || now_y < h) {56 if(now_x >= width || now_y >= height) { 57 57 break; 58 58 } 59 59 vec2[now_x + now_y * w] = vec1[i]; 60 i++; 60 61 } 61 62 } … … 72 73 now_x = i % width; 73 74 now_y = i / width; 74 if(now_x < w || now_y < h) {75 if(now_x >= width || now_y >= height) { 75 76 break; 76 77 } 77 78 vec1[now_x + now_y * w] = vec2[i]; 79 i++; 78 80 } 79 81 }
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)