判断头几个字节: function IsJpegFile(FileName: string): Boolean; const RightBuf : ..] of Byte = ($FF,$D8,$FF,$D9); var Buf: ..] of Byte; begin FillChar(Buf, , ); ) do begin Position := ; ReadBuffer(Buf[], ); Position := Size-; ReadBuffer(Buf[], ); Free; end;
/* fopen example */ #include <iostream> #include <conio.h> using namespace std; int main() { FILE* fp; fp = fopen("C:/Users/Qin/Desktop/123.txt", "rb"); if ((fp == NULL)) { printf("\nerror on open C:/Users/Qin/Desktop/
当打开一个.h或.cpp文件时, Solution Explorer就自动展开文件所在的目录: 如果不想展开: Tools -> Options -> Projects And Solution -> General ->Track Active Item in Solution Explorer (去掉前面的对勾) 来自:http://blog.csdn.net/guowenyan001/arti