+ 1
What is the difference between class _ type x (); and class _ type x; in c++
2 Antworten
+ 2
thanks@Michael Srczepanski
+ 1
the first one should call the default constructor. and the second one creates am object, which calls the default constructor :/
if you are not going to overload a constructor amd assign values at the time you create the object, just use class dt x; otherwise use the parameter list. class dt x (1,2,3);
jope this helps :D