Ok, i've changed the code to what I think you wanted me too, the structure now looks like this.
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
};_persons persons;
struct _messages //structure tha
{
char standard[message];
char personal[message];
};_messages messages;
struct _Images //structure that contains the images of the built card
{
Image main_image;
Image image1;
Image image2;
Image image3;
Image image4;
};_Images Images;
};
and i'm no longer getting the invalid use error, but now i'm getting some different ones :S
Code:
cout << "please enter the name of the sender: ";
cin >> card.persons.sender; endl;
gives the error statement cannot resolve address of overloaded function. to the best of my knowleadge, I am not overloading this function as it is not used anywhere othre than here.
Code:
message_ = "Merry Christmas";
gives the error incompatible types in assignment of 'const char [16]' to 'char[51]'. I assumed it had something to do with the variable type, but whatever I change it too only seems to make it angrier.