我這樣怎么還通過了?我都沒定義private
class Student { public: ? ?Student() ? ?{ ? ? ? ?m_strName = ""; ? ?} ? ?Student(string _name) ? ?{ ? ? ? ? ? ?} ? ?Student(const Student& stu) ? ?{ ? ? ? ? ? ?}; ? ?`student(); ? ?void setName(string _name); ? ?string getName(); }
2017-07-27
找到原因了,這是評(píng)論區(qū)的一句話:cout<<"慕課網(wǎng)"<<endl; ?就能夠通過,代碼寫的正確不通過,這個(gè)就通過了,很明顯認(rèn)證對(duì)錯(cuò)就是簡(jiǎn)單的驗(yàn)證輸出結(jié)果,而沒有更加智能的驗(yàn)證系統(tǒng),慕課網(wǎng)還有很多地方需要努力的啊