[英]Syntax not understood
What is the significant of * in this line please ? *在这行中*的有效含义是什么?
CourseClass::CourseClass(Professor* professor){
}
It says the function argument is of pointer type. 它说函数参数是指针类型。
void foo1(int bar) { } // foo1 accepts an integer argument
void foo2(int *bar) { } // foo2 accepts an integer pointer.
该函数将接受Profess类型的指针参数
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.