troubleshooting Question

Structures and programs

Avatar of Helix
Helix asked on
C++
12 Comments1 Solution289 ViewsLast Modified:
Im just having a fiddle with some code from a book of mine,

Basically There is a structure like:

struct date
      {      int day;
      char string[8];
            int year;
      };

The book says the user has to input 2 birthdays and a function, called check has to see if they're the same.

Now have had a go with doing something like:

struct date birthdayone

cin << birthday1.day << birthday1.string  etc

and the same with birthdaytwo.

Im just having problems trying to put all my inputed data for birthday1 and birthday2 into a function that checks to see if they're equal. I could put all six inputs but that seems sloppy

opinions anyone?
ASKER CERTIFIED SOLUTION
Join our community to see this answer!
Unlock 1 Answer and 12 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 12 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros