Code:
#include <iostream>
#include <string>
int main()
{
std::string name;
std::cout << "What is your full name: ";
std::getline(std::cin, name);
int age = 0;
std::cout << "How old are you: ";
std::cin >> age;
std::cin.ignore(); // ignore the newline here, after the call to cin >>.
std::string address1;
std::string address2;
std::cout << "What is your address line 1: ";
std::getline(std::cin, address1);
std::cout << "What is your address line 2: ";
std::getline(std::cin, address2);
std::cout << '\n' << name << " is " << age << " years old and lives at:\n";
std::cout << address1 << '\n' << address2 << '\n';
}
(I didn't compile or test that, but hopefully you get the point. The part in red is what I was talking about.)