http://www.cplusplus.com/doc/tutorial/files/Xcode는 .txt 파일을 어디에서 생성합니까?
방금이 작업을 마쳤으나 바탕 화면에 파일이 없습니다.
그렇다면 .txt 파일은 내 컴퓨터에 어디에 배치됩니까?
// basic file operations
#include <iostream>
#include <fstream>
using namespace std;
int main()
{
ofstream myfile;
myfile.open ("example.txt");
myfile << "Writing this to a file.\n";
myfile.close();
return 0;
}
관심 분야로, 왜 당신의 데스크탑에있을 것으로 기대 했습니까? –
귀하의 프로필에서 - '나는 언제나 매우 효율적입니다'라고 사로 잡혀 있습니다. 그래서, 내 대답이 당신의 문제를 해결 했습니까? –