A
asdf
what does it mean? Could you please show me an example ?
For a class without a default constructor,how to initialize ?
For a class without a default constructor,how to initialize ?
asdf said:what does it mean? Could you please show me an example ?
For a class without a default constructor,how to initialize ?
benben said:class C
{
public: C(int i){}
};
C c1; // error
C c2(1234); // Ok
Ben
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.