[問題] using function?

看板C_and_CPP (C/C++)作者 ( )時間16年前 (2009/05/04 07:12), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/2 (看更多)
請問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
文章代碼(AID): #19_YJnN3 (C_and_CPP)
討論串 (同標題文章)
文章代碼(AID): #19_YJnN3 (C_and_CPP)