LoginSignup
3
3

More than 5 years have passed since last update.

C言語 フォルダ作成

Posted at

フォルダ作成

#include <stdio.h>
#include <direct.h>

void main(){

    if (_mkdir("c:\\Newfolder") == 0)
        printf("フォルダを作成しました。\n");

    else
        printf("フォルダ作成に失敗しました。\n");

}

実行結果

フォルダを作成しました。
フォルダ作成に失敗しました。
3
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
3