Question
C++, use visual studio. I have code here but there is lots of error. #include using namespace std; // classs declaration class dateTpe { private:
C++, use visual studio. I have code here but there is lots of error.
#include
} else { cout << "Invalid Day" << endl; dDay = 0; }
} else { cout << "Invalid Month" << endl; dMonth = 0; }
} else { cout << "Invalid Year" << endl; dYear = 0;
} } bool dateType::isLeapYear(int year) { // function to confirm if (year % 4 == 0) return true; else return false;
} void dateType::printDate()const { cout << dMonth << "-" << dDay << "-" << dYear; }
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started