// サイズを指定してインスタンスの生成 // vector<int> iVec( N ) ; #include <iostream> #include <vector> using namespace std; int main( ) { cout << "[vector00] サイズを指定してインスタンスの生成" << endl ; vector<int> iVec(10); cout << "vector size = " << iVec.size( ) << endl ; return 0; } // サイズは size( ) で獲得できる。 // end of file