In the following test case I can not get my leap year if satement to work. I thing I really don't get is I successfully wrote the same program in bash that I'M now working on in C++. I took the forumla streight out of my successfull bash script but in my C++ version I'M always getting leaop year.


Code:
#include <iostream>
#include <stdlib.h>
#include <string.h>

int main( int argc, char **argv )
{
    char *result = "It's not Leap Year";
    int local_year = atoi( argv[1] );

    if (( local_year % 4 == 0 && local_year % 100 != 0 ) || local_year % 400 == 0 );
        {
            result = "It's Leap Year!";
        }

        std::cout << result << std::endl;

    return 0;
}