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.
请问这行*的意义是什么?
CourseClass::CourseClass(Professor* professor){ }
它说函数参数是指针类型。
void foo1(int bar) { } // foo1 accepts an integer argument void foo2(int *bar) { } // foo2 accepts an integer pointer.
此函数将接受教授类型的指针参数