Hello, i would like a class to contain an array of strings ,see below
class book {
public :
book( string auth[]);
private:
string author[4]
}
however , i'm having problems passing an array to the constructor?, idealy i would like to do something like this
book b1( {"Author1","Author2","Author3","Author4" } );
can anybody see why this won't work?.
(ps i know i haven't shown the actual constructor function, once the info gets in to the ,function i think i'll be ok)