//匹配文件的后綴名
int SourceFile::reg_path(const char* path){
? ? if(regex_match(path,regex(".+(png|jpg|gif)$"))==1){
? ? ? ? return 1;
? ? }
? ? else{
? ? ? ? return 0;
? ? }
}
//匹配文件的后綴名
int SourceFile::reg_path(const char* path){
? ? if(regex_match(path,regex(".+(png|jpg|gif)$"))==1){
? ? ? ? return 1;
? ? }
? ? else{
? ? ? ? return 0;
? ? }
}