initialising an array within a class using a constructor

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)
That syntax won't work with current standards.
You'll need to do something like this:
1
2
string t[] = {"Author1","Author2","Author3","Author4" };
book b1( t );
Topic archived. No new replies allowed.