+ 2

Why use is use of this : if there is no const variable

..

1st Apr 2017, 10:16 AM
Purnima duggal
Purnima duggal - avatar
5 Respostas
+ 12
Can you elaborate on your question with examples?
1st Apr 2017, 10:26 AM
Hatsy Rei
Hatsy Rei - avatar
+ 4
I think he's asking about member initializer list in constructors. It just looks better, and beyond that you can call nested class constructors e.g: class Body { public: int radius; Body(int r): radius(r) {} }; class Object { public: Body body; string name; Object(): name("Unknown"), body(50) {} };
1st Apr 2017, 10:36 AM
Jakub M.
Jakub M. - avatar
+ 1
o mpmppppppppp.0ppppp0ppp0..0p0 pppppp0ppppppp o . .ppp opp..pppppp0ppppppp. pp.pl..p.p pp.pppppppppppppppppp0plp.ppp.p.p.p.p.p.p.0ppp.p,lo.pp.pp.p00p0p.pppppp0ppppppp.p,pppp.pp0p.p.pl.m,?
7th May 2017, 4:23 PM
Arjun Singh
Arjun Singh - avatar
0
Can you please explain your question once again? You can even choose hindi as the language to ask your question.
3rd May 2017, 11:02 AM
Ashish Bairwa
Ashish Bairwa - avatar