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.
静态函数可以有指针作为参数吗?
例如这段代码:
static void myFunctionName(Object &object1)
谢谢你。
在您的示例中,它是引用,而不是指针。但除此之外,静态方法可以具有对非静态函数合法的任何参数。两者在这方面没有区别。