作者bumpwy (bumpwy)
看板EE_DSnP
標題[問題] homework8
時間Sun Dec 23 20:26:35 2007
想在問一個問題
作業中要我們在 readgraph的memberfunction中allocate the memory for all the Vertex object,
but wouldn't these objects be invalid out of the function's scope?
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 220.137.72.137
1F:推 AlanLee76083:我也想問這個問題,怎麼把readgraph allocate memory 12/23 20:59
2F:推 AlanLee76083:指到** _tovertice 12/23 21:02
3F:推 ilway25:new 一個 pointer 指過去 ? 12/23 21:14