How to create a folder on a Mac with C++?

前端 未结 2 509
伪装坚强ぢ
伪装坚强ぢ 2021-01-24 13:33

How do you have the user input the folder name and have it created in the desktop (for mac)? This is what I have so far.. (and extra code underneath)

#include &         


        
2条回答
  •  暖寄归人
    2021-01-24 13:54

    Environment variables are case sensitive, so you need to use getenv("HOME") instead of getenv("Home").

提交回复
热议问题