#include #include using namespace std; int main() { cout << "Please type the date and press RETURN.\n" << "For example, January 1 2014\n"; char month[256]; //uninitialized variable cin >> month; //Put a '\0' into month after the last character. int day; //uninitialized variable cin >> day; //scanf("%d", &day); would have needed an ampersand. int year; //uninitialized variable cin >> year; cout << "month == " << month << "\n" << "day == " << day << "\n" << "year == " << year << "\n"; return EXIT_SUCCESS; }