1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Initializing an array of class objects with...

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

  1. wasd

    wasd New Member

    Joined:
    Sep 1, 2010
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    0
    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