#include // Headers needed to save everything to a file #include //Basic input/output headers #include // String function headers. I don't think I need this, but I might if I want to improve this program using namespace std; string name, sentence, full; //Defining the strings int main() { cout << "Enter your name: "; //Outputs "Enter your name: " getline(cin, name); //User input for the string "name" cout << "Enter a sentence that describes yourself: "; getline(cin, sentence); full = "My name is " + name + "." + " " + sentence; //Defining that the string "full" is "My name is ", the contents of "name", a period, a sace, and the contents of "sentence". ofstream SaveFile("cpp-home.txt"); //Writes a file SaveFile << full; //Saves the contents of "full" to the file defined above SaveFile.close(); //Closes the file that was just opened by the program return 0; //Returns the value of 0, which means eberything is okay. }