我尝试使用Google搜索和Stack Overflow搜索,但它没有显示任何结果.我在开源库代码中看到了这个:
Notification notification = new Notification(icon, tickerText, when);
notification.defaults |= Notification.DEFAULT_SOUND;
notification.defaults |= Notification.DEFAULT_VIBRATE;
Run Code Online (Sandbox Code Playgroud)
"| ="(pipe equal operator)是什么意思?
所以我最近开始使用TI的CC2650设备,并试图通过研究他们的一些示例应用程序来学习如何编程.我看到以这种格式声明了很多变量,我不知道它意味着什么:
var1 = x | y | z;
Run Code Online (Sandbox Code Playgroud)
在上面的示例中,var1类型为uint8_t.