當前位置:編程學習大全網 - 網站源碼 - C++如何創建壹個文件夾

C++如何創建壹個文件夾

我只能用自己的方法實現這壹目的

另外,msdn中沒有createfile這壹函數

#include <iostream>

#include <string>

using namespace std;

int main()

{

cout <<"輸入要創建文件夾的位置和名字:"<<endl;

cout <<"例如: c:\\contacts"<<endl;

string path;

cin >>path;

path="md "+path;

system(path.c_str());

}

  • 上一篇:蘋果手機定位技術
  • 下一篇:linux把wget文件放在哪裏?
  • copyright 2024編程學習大全網