// Justin C. Miller
// University of Wisconsin Oshkosh
// Made for: http://www.geocities.com/neonprimetime.geo/index.html
// Date: 2001
// Borland Builder 4.0
// structs
// this is an example of a struct being used as a date
#include
struct date
{
int month ;
int day ;
int year ;
}; // don't forget this ever important semi-colon!!!!
int main()
{
// how to create an initialize a struct
date birthday ;
birthday.day = 20 ;
birthday.month = 7 ;
birthday.year = 1981 ;
// initialize another
date today ;
today.day = 15 ;
today.month = 1 ;
today.year = 2001 ;
// if they're equal, say it
if(today.day == birthday.day)
if(today.month == birthday.month)
if(birthday.year == today.year)
cout << "Happy Birthday!!!!!" << endl ;
cout << "So how are you doing today?" << endl ;
return 0 ;
}
               (
geocities.com/neonprimetime.geo/cpp)                   (
geocities.com/neonprimetime.geo)