Re: [問題] 想請問關於vector

看板C_and_CPP (C/C++)作者 (小班)時間14年前 (2011/11/20 22:41), 編輯推噓1(100)
留言1則, 1人參與, 最新討論串2/2 (看更多)
typedef struct { vector<int> int_vector; vector<float> float_vector; } retval_t; retval_t NoximRouter::routingFunction (const NoximRouteData &route_data); ※ 引述《sean823823 (eojdkf)》之銘言: : vector < int >NoximRouter::routingFunction(const NoximRouteData & route_data) : 這行程式的回傳值型態為vector < int > : 請問可否回傳兩個值或兩個值以上嗎? : 如果可以,如何回傳? : 謝謝!!!!! -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 125.227.93.136

11/20 22:56, , 1F
利用自訂struct做回傳, 謝謝!!!!!
11/20 22:56, 1F
文章代碼(AID): #1EoH69vE (C_and_CPP)
討論串 (同標題文章)
本文引述了以下文章的的內容:
完整討論串 (本文為第 2 之 2 篇):
文章代碼(AID): #1EoH69vE (C_and_CPP)