Initializing an array of class objects with...

Discussion in 'C++' started by wasd, Sep 1, 2010.

  1. wasd

    wasd New Member

    Sep 1, 2010
    Likes Received:
    Trophy Points:
    So like...

    klass *objects=new klass[32]; //I understand that the default constructor gets called

    But I'd like to initialize the objects with parameters(non-default constructor) which I read from a file. Is that possible?
    Also I'd like to stay away from for now >_>.

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice