What does the “|” in “int style = SWT.APPLICATION_MODAL | SWT.OK;” do (and how to Google it)?

前端 未结 7 778
囚心锁ツ
囚心锁ツ 2021-01-12 23:14

I can\'t search for | in Google. If you had found it in a software source code that you are trying to interpret, you didn\'t know what it does and you couldn\'t ask other pe

相关标签:
7条回答
  • 2021-01-12 23:47

    In answer to your question about finding out what it does, I would first reason to myself whether it was a symbol or an operator. That alone helps me figure out what to search for in Google. The types of the variables being used also give me a clue - it's an operator that's working on int types.

    Hope that helps.

    0 讨论(0)
提交回复
热议问题