( 178 , 2 , ' Views ' , ' 2856 ' ),
( 180 , 128 , ' Views ' , ' 586 ' ),
( 182 , 136 , ' Views ' , ' 542 ' ),
( 184 , 139 , ' Views ' ,' 521 ' ),
( 186 , 146 , ' Views ' , ' 973 ' ),
( 188 , 158 , ' Views ' , ' 932 ' ),
( 189 , 162 , ' Views ' , ' 447 ' ),
( 190 , 198 ,' Views ' , ' 1512 ' ),
( 192 , 206 , ' Views ' , ' 733 ' ),
( 193 ,214 , ' Views ' , ' 549 ' ),
( 195 , 289 , ' Views ' , ' 1419 ' ),
(198 , 357 , ' Views ' , ' 1558 ' ),
( 200 , 372 , ' Views ' , ' 769 ' ),
( 202 , 1128 , ' Views ' , ' 743 ' ),
( 204 , 2669 , ' Views ' ,' 377 ' ),
( 208 , 3843 , ' Views ' , ' 292 ' ),
( 211 , 3876 , ' Views ' , ' 116 ' ),
( 236 , 160 , ' Views ' , ' 566 ' ),
( 237 , 551 ,' Views ' , ' 1195 ' ),
( 239 , 561 , ' Views ' , ' 26 ' ),
( 241 ,596 , ' Views ' , ' 1837 ' )
Data such,CodeAs follows:
Crect RC;
M_list.getclientrect (RC );
Int Nwidth = RC. Width ()/ 4 ;
M_list.insertcolumn ( 0 , " Meta_id " , Lvcfmt_left, nwidth );
M_list.insertcolumn ( 1 , " Post_id " , Lvcfmt_left, nwidth );
M_list.insertcolumn ( 2 , " Meta_key " , Lvcfmt_left, nwidth );
M_list.insertcolumn ( 3 , " Meta_value " , Lvcfmt_left, nwidth );
File * f = fopen ( " 1. SQL " , " R " );
Int Meta_id, post_id, meta_value;
Char Meta_key [ 6 ];
Char Ch [ 50 ];
Cstring strsql ="" ;
Cstring STR;
Int Nindex = 0 ;
While (Null! = Fgets (CH, 50 , F ))
{
Sscanf (CH, " (% D, % d, '% [^', ']', '% D '), " , & Meta_id, & post_id, meta_key, & meta_value );
Str. Format ( " % D " , Meta_id );
M_list.insertitem (nindex, STR );
Str. Format ( " % D " , Post_id );
M_list.setitemtext (nindex, 1 , STR );
M_list.setitemtext (nindex, 2 , Meta_key );
Str. Format ( " % D " , Meta_value );
M_list.setitemtext (nindex,3 , STR );
Nindex ++;
}
The same is true for using this sentence:
While(EOF! = Fscanf (F,"(% D, % d, '% [^', ']', '% D'), \ n", & Meta_id, & post_id, meta_key, & meta_value ))