Hi again.
I've got this program that's supposed to generate Christmas cards. it does this using hard coded information and information given by the user.
it uses the following stucture at its base;
Code:
struct Basecard
{
struct persons //structure that holds the names
{
char sender[name]; //senders name
char reciptfore[name]; //recipients forename
char reciptsur[name]; //recipients surname
};
struct messages //structure tha
{
char standard[message];
char personal[message];
};
struct Images //structure that contains the images of the built card
{
Image main_image;
Image image1;
Image image2;
Image image3;
Image image4;
the problems occur when I'm trying to use the structures. here's an example
Code:
cout << "please enter the name of the sender: ";
cin >> card.persons.sender; endl;
gets the compiler error invalid use of struct Basecard:: persons
I'm guess i'm calling it wrong. can anyone tell me the proper way?
thanks
ES