Constractors

Hello
i starting learning c++ i have some questions about constructors
for example: why i can declare classname tpm1;this will create an object with defult constractor ,or classname tmp1(10,8) this will also create an object whith thoose values ,but if i declare classname tmp1(); it dose not work ?!
Thx
because the compiler cannot decide whether classname tmp1(); is a function declaration (with the result classname) or a variable declaration
thx
Topic archived. No new replies allowed.