[閒聊] C++的local變數

作者: star123 (光二比利海靈頓)   2019-12-15 20:59:05
void anal(node* n)
{
node* nodeToDelete = n;
delete nodeToDelete;
}
這樣子呼叫完之後 nodeToDelete這個local指標要另外處理嗎
還是local變數也都要自己處理??

Links booklink

Contact Us: admin [ a t ] ucptt.com