大大们来看看这个超简单是代码问题!
大大们来看看这个超简单是代码问题!#include <iostream>
using namespace std;
int main()
{
int year;
bool IsLeap ;int Year;
cout<<"Enter the year:";
cin>>year;
IsLeap ;Year = ((year % 4 == 0 && year % 100));! 0||(year % 400 == 0);
if (IsLeap)Year;
cout<<year<<"is a leap year"<<endl;
if
cout<<year<<"is not a leap year"<<endl;
return 0;
}
调试后出现error C2061: syntax error : identifier 'cout'语句。是什么原因?
3Q!