How to create a directory in C++

前端 未结 3 1535
故里飘歌
故里飘歌 2020-12-31 14:09

i just found a little piece of code that let me create a directory with windows API without using system(). The only problem is that i can\'t create directory in subdirector

3条回答
  •  轮回少年
    2020-12-31 14:28

    You need another backslash in there:

    CreateDirectory ("C:\\Users\\morons", NULL);
    

提交回复
热议问题