我在C++中有这段代码:
ihi = y[0]>y[1] ? (inhi=1,0) : (inhi=0,1);
但它在C#中看起来如何呢?
c# c++ if-statement
c# ×1
c++ ×1
if-statement ×1