- 3
- 0
- 约4.64千字
- 约 12页
- 2017-03-15 发布于北京
- 举报
比较全面的文件操作,支持中文文件名
//
#include stdafx.h
#include iostream
#include fstream
#include string
#include direct.h
#include Windows.h
#include atltime.h
#include locale.h
using namespace std;
#define NDEBUG
int gcd(int v1,int v2);
bool createDir(const char* dir);
bool createFile(const char* fileName);
void findFile();
bool isExistFile(const char* filePath);
bool isExistFileW(const char* filePath);
int main()
{
#ifndef NDEBUG
cerr error endl;
#endif
int n = gcd(12,9);
cout n endl;
/*char dir[] = c:\\日涨跌;
bool b = createDir(dir);
if(b)
{
cout 创建目录成功 endl;
}
else
{
原创力文档

文档评论(0)