作者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