Our programmer made several errors in the code, find and fix them.
Classes, objects, and methods
Errors
Report a typo
Sample Input 1:
Sample Output 1:
Today is a wonderful day and date: 11Write a program in C++
#include <iostream>
Class DateClass{
public
int day;
int month;
int year;
}
int main(){
DateClass today {11, 11, 2011};
std::cout << "Today is a wonderful day and date: ";
std::cout << today-day << std::endl;
return 0;
}
Create a free account to access the full topic
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.