缺少构造函数,在Student类里增加构造函数。
下面提示里,没有构造函数。增加构造函数:Student(string n=" ",int s=0):name(n),score(s){}
你这只是Student类,里面没有定义无参或者接收参数的Student方法,怎么用来接收数据呢