In cpp version, auto is better than int
ystp opened this issue · comments
CKCode commented
in c++ 11, auto is useful.
Foe example:
for ( auto i=0; i<100; i++)
{
cout<<"auto is useful"<<endl;
}
TomsProject commented
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.
TomsProject commented
I just make a c++ version with auto of LeapYearCheak, thanks for your GOOD FIRST ISSUE