#include <stdio.h> #include <string.h> #include <stdint.h> #include <stdlib.h> #include <string> #include <iostream> #include <vector> #include <sstream> using namespace std; typedef uint32_t DWORD; #define VOID void typedef int BOOL; #define FALSE 0 #define TRUE 1 typedef unsigned int UINT; typedef char CHAR; typedef CHAR *PCHAR; bool __DeleteFile(const char* lpFileName) { char _szCmd[256]; memset(_szCmd, 0, 256); sprintf(_szCmd, "rm -f %s", lpFileName); system(_szCmd); return true; } int main() { __DeleteFile("showmebug.cc"); system("ls"); cout<<"hello,world"<<endl; return 0; }
原文:https://www.cnblogs.com/hshy/p/14403081.html