ytmo / LeapYearCheak

Leap Year Cheak ---- Check if a year is a leap year

Home Page:https://ytmo.github.io/LeapYearCheak/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

In cpp version, auto is better than int

ystp opened this issue · comments

in c++ 11, auto is useful.
Foe example:
for ( auto i=0; i<100; i++)
{
cout<<"auto is useful"<<endl;
}

BUT now I needn't C++11's new characteristic.
And why I should use auto nor int? auto has to do type derivation, and the result still IS int.

I just make a c++ version with auto of LeapYearCheak, thanks for your GOOD FIRST ISSUE