狼
狼牙
Unregistered / Unconfirmed
GUEST, unregistred user!
//各位看看这段c代码如何转换成pascal代码阿?读取二进制。。<br>file*fp_addr <br>char*srcname <br>char headbuf[0x41],recbuf[0xb1] <br>int i; <br>if(fp_addr=fopen(srcname,"rb"))==null) <br>{exit(-1)} <br>fseek(fp_addr,0x40,seek_set) <br>while(!feof(fp_addr)) <br>{ <br>char name[0x21],email[0x41] <br>for(i=0;i<0x21;i++) <br>name='/0' <br>for(i=0;i<0x41;i++) <br>email='/0' <br>fread(recbuf,1,0xb0,fp_addr) <br>if(recbuf[0x4]==1) <br>{continue;} <br>if(recbuf[0x11]==1) <br>{continue;} <br>for(i=0;i<recbuf[0x21],i++) <br>{ <br>if(recbuf[i+0x13]==0)break <br>name=recbuf[i+0x13] <br>} <br>for(i=0;i<recbuf[0x33],i++) <br>{ <br>if(recbuf[i+0x34]==0)break <br>email=recbuf[i+0x34] <br>} <br>/**/ <br>} <br>fclose(fp_addr) <br>