Please how should I use command line argument to find if year is a leap year or not in the following given piece of code?
bool isleapyear(int inyear)
{
if (inyear % 4 != 0){
return false;
}
else if (inyear % 100 != 0){
return true;
}
else if (inyear % 400 != 0){
return false;
}
else {
return true;
}
}