Detect months with 31 days

前端 未结 19 1650
南旧
南旧 2020-12-18 01:53

Is there an analogous form of the following code:

if(month == 4,6,9,11)
{
  do something;
}

Or must it be:

if(month == 4 ||         


        
19条回答
  •  情话喂你
    2020-12-18 02:40

    if( 0x0A50 & (1<

    dude, this is ridiculous. (month==4||month==6||month==9||month==11) is perfectly ok.

提交回复
热议问题