单选题

下面的C++用于对 lstA 排序,使得偶数在前奇数在后,横线处应填入( )

A.

isEven(lstA[j]) && !isEven(lstA[j+1]) 

B.

!isEven(lstA[j]) && isEven(lstA[j+1])

C.

lstA[j] > lstA[j+1]

D.

lstA[j] < lstA[j+1] 

发表评论

登录 后再回复