__DeleteFile 删除文件(showmebug)

#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;
}

 

posted on 2021-02-15 00:24  lydstory  阅读(24)  评论(0)    收藏  举报

导航