Wouldn't this belong under beginners? Anyways I will give you a few tips of my fedora. This project will require the iostream header. If you write using namespace std; before you declare int main() then things get easier. Also, int main() is where you want to write your code using curly brackets. Use a string variable to record answers and cout to display them.
#include <iostream>
#include <conio.h> //not needed
usingnamespace std;
int main()
{
string name;
string age;
int dump; //extra variable not needed
cout<< "what is your name?\n"; //this will put the text on the screen
cin>> name; //this stores the answer as 'name'
cout<< "\nHow old are you?\n"; //ask a question
cin>> age; //guess what this stores
cout<< "\nYour name is ";
cout<< name; //notice there are no quotes around the variable
cout<< ". You are ";
cout<< age;
cout<< " years old.";
dump = getch(); //this line is not needed
}
I know C++ seems complicated at first but you will eventually get good at it.