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.
在Uno中假设我有 UNO 类型的接口。我需要访问它的值或地址。我应该调用哪种方法?
与任何 C++ 对象一样,您可以使用&. 引用本身没有地址,但您仍然可以使用它&来获取所引用对象的地址。
&
“价值”有点复杂。接口的价值是iLaunchRocket*什么?许多接口只提供功能而没有(公开可见的)数据。在这种情况下,“价值”的概念很棘手。
iLaunchRocket*