#include <iostream>
#include <vector>
using namespace std;
int main()
{
// Create a vector containing integers
vector<int> v = { 7, 5, 16, 8 };
v.push_back(25); // Adds 25 to the contents of the vector
v.push_back(13); // Adds 13 to the contents of the vector
// Print out the contents of the vector
cout << "v = { ";
for (int n : v) {
std::cout << n << ", ";
}
cout << "};
";
}
vector<vector<int>> matrix(x, vector<int>(y));
This creates x vectors of size y, filled with 0's.