How do I manage to implement a "press enter" command instead of having the user write something? I am terribly new.
using namespace std;
int main() {
int year;
cout << "this is a leap year checker press enter.... \n";
//I want to have a press enter command over here.
cout << "put year here: \n";
cin >> year;
if (((year % 4 == 0) && (year % 100 != 0)) || (year % 400 == 0))
cout<<year<<" is a leap year";
else
cout<<year<<" is not a leap year";
return 0;
}