2013年9月14日

C/C++创建多级目录

摘要: 常常需要在非MFC的环境下创建目录,尤其是多级目录,这里写了一个创建多级目录的子函数CreateDir,以后需要就可以直接拿来用了。 1 #include 2 #include //_mkdir函数的头文件 3 #include //_access函数的头文件 4 5 using namespace std; 6 7 void CreateDir( const char *dir ) 8 { 9 int m = 0, n;10 string str1, str2;11 12 str1 = dir;13 str2 = str1.su... 阅读全文

posted @ 2013-09-14 11:44 文森vincent 阅读(11332) 评论(1) 推荐(0) 编辑

导航