#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(); }
1> "I love computer" ++ " You love computer". "I love computer You love computer"