// Program Name: ClassArray_3LbX2.exe // Author: Tyler Travis, Eruption Software // www.travis-usa.com // Date: 1/25/00 //This program creates a Student Class Array, //inputs data, and displays the student's data. #include #define NSTANCE_TOTAL 3 //book wants 20 #define NAME_TOTAL 25 // DECLARATION SECTION: class Dates { private: static char slash; int month; int day; int year; char login[NAME_TOTAL]; public: Dates(); //constructor to assign default values void log_in(void); char set_data(int in); //prototype to assign values void display_data(char ans, int dx); //prototype to display the assigned values }; char Dates::slash = '/'; void main() { Dates today[NSTANCE_TOTAL]; char answer; cout<<""<>answer; } // IMPLEMENTATION SECTION: Dates::Dates() //constructor { Dates::month = 01; Dates::day = 01; Dates::year = 2000; } void Dates::log_in(void) { cout<<" Enter your Login Name: "; cin.getline (login, sizeof(login)); cout<<" Your login is accepted, "<>response; if (response != 'y' && response != 'Y') { cout<>month; cout<<" Enter the Day: "; cin>>day; cout<<" Enter the Year: "; cin>>year; } cout<