p[i]->type = 0;編譯出錯
提示base operand of `->' has non-pointer type
說明只有指針才能用->操作
提示base operand of `->' has non-pointer type
說明只有指針才能用->操作
2017-11-11
重新定義一個函數,,在新函數 里面實例化對象。。當函數執行完畢時,便會自動釋放對象資源,也就調用了析構函數,,再在main()主入口函數中設置斷點??赏暾吹轿鰳嫼瘮档膱绦小?br />
void temp(){
Teacher Object111;
}
int main(){
temp();
system("pause");
}
Teacher Object111;
}
int main(){
temp();
system("pause");
}
2017-11-07