作者xsoho ( )
看板C_and_CPP
標題[問題] using function?
時間Mon May 4 07:12:48 2009
請問C#中有這種用法
using (Image<Gray, Single> image = new Image<Gray, Single>(1000, 800))
{
... //do something here in the image
} //The image will be disposed here and memory freed
在 C++中的話要怎麼實現呢?
謝謝
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 122.146.38.171