jonny b, try this out:
#include <iostream>
#include <string>
using namespace std;
void main()
{
double age;
string name;
cout << "how old are you?";
cin >> age;
cout << "what is your name?";
getline(cin, name);
getline(cin, name); //two needed to take in the \n character...