Hello, I'm using NetBeans 6.9 on GNU/Linux (Ubuntu 10.10)
When I run this,
..all I get is..
using namespace std;
cout << "What is your name?" << endl;
cin >> name;
cout << "Your name is " << name << endl;
cout << "What age are you?" << endl;
cin >> age;
cout << "You are " << age << " years old." << endl;
"Your name is 0
What age are you?
You are 0 years old."
when I enter my name. Please help (It should be obvious what output I'm expecting to get)