size_type vector<X,A>::max_size() const;
#include <vector>
#include <iostream>
#include <vector>
int main()
{
using namespace std;
// Output the maximum size of a vector
vector<int> qV;
cout << "The maximum size is " << qV.max_size() << endl;
// Keep the window open
cin.get();
return 0;
}
© 20072025 XoaX.net LLC. All rights reserved.