看板 C_and_CPP 關於我們 聯絡資訊
開發平台(Platform): (Ex: VC++, GCC, Linux, ...) VC2010 額外使用到的函數庫(Library Used): (Ex: OpenGL, ...) no 問題(Question): 自定義 class Glyph class FController 及其 子類別 AddGlyph 我想在vector中放入Glyph的指標 以及使用函數接收 目前宣告為 vector vector<Glyph*> glyphs; FController *fc[5]; AddGlyph ad; fc[0] = &ad; 接收函數 FController::execute( <Glyph*> glyph_vec ){..} AddGlyph::execute( <Glyph*> glyph_vec ){...} 呼叫 fc[0]-> excute( glyphs ); 麻煩大家幫我看看~ -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 1.164.100.161
damody:請問有錯嗎? <Glyph*>前面沒加vector? 09/30 20:27
各位大大對不起 上面有地方打錯 +烤肉烤到一半想到解決方法 -> 依舊不過 檢查code 發現有一行函數沒打到 "class_name::" 實在抱歉0...0 ※ 編輯: catspawboy 來自: 1.164.100.161 (09/30 22:17)