【发布时间】:2013-08-18 12:37:44
【问题描述】:
我有一段代码要转换成 c#。
bool checkvalue()
{
unsigned char ucvalue;
Method(&ucvalue);
return ucvalue? false:true;
}
Method() 有定义:
This function returns the current position . 0 = OFF 1 = ON
所以我不明白return ucvalue? false:true; 是什么意思。
谢谢。
【问题讨论】:
-
顺便说一句,C# 中也存在该运算符。