cout << "Enter your full name";
char* name ;
cin >> name;
if(_mkdir("c:\\names") == 0) {
cout << "directory successfully created";
} else {
cout << "there was a problem creating a directory";
}
と同じ名前のファイルを作成する今私はuser
の名前と同じ名前のディレクトリ内のファイルnames
(.txtファイル)を作成したいです。 cin >> name;
の間にユーザーが入力した名前です。は、入力
どうすればいいですか?
ofstream writeName("c:/names/????);
----> PROBLEM
'char * name; cin >> name; ' - あなたはこれが何をするのか知っていると思いますか? – Donotalo