소스 ¶
#include <fstream> #include <iostream> using namespace std; void main() { char x[20] = "I love computer"; char y[20] = " You love computer"; ofstream outputFile("result.out"); outputFile << "x => " << x << "\ny => " << y << "\nz => "<< x << y; outputFile.close(); }