注意:使用vector,注意程式前面必須包含vector 標頭檔. – #include <vector>. 向量初始化. • 向量索引值由0開始,非從1開始。 • vector<int> v(6); v[0]=5; v[1]=7;.
確定! 回上一頁