I also use Dev-Cpp and the code compiles fine with the exception that in your code, you're constructing the variable d incorrectly:
It should beCode:Date d(); std::cout << "Date object: " << d << std::endl;notCode:Date d;, because Date d() means you're declaring a function called d that returns type Date, and that's not exactly what you want to do...Code:Date d()![]()




Reply With Quote