Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想知道如何找出最后按下哪个(编程的)按钮,然后采取相应的行动。我必须有某种数组吗?
您可以在您的类中有一个 int 变量,一旦按下按钮,您就可以使用按钮的 ID 更新该变量。