#include <iostream>
using namespace std;
struct date
{
int month[2];
int day[2];
int year[4];
char dummy[1];
};
I understand that that is an array. what im trying to accomplish is to set the number of characters inputed to 2 for month. for example, the above will ask: Please enter your birthdate (mm/dd/yyyy)
my cin statement will be:
cin >> birthdate.month >> birthdate.dummy >> birthdate.day . . . and so on.
when the user inputs the birthdate (02/17/2003), i want the 02 to be the month, '/' to be the dummy character, 17 to be the day, and 2003 to be the year.
i hope this makes sense. please help!!