how to add to 2d vector c++ code example
Example 1: how to make a 2d vector in c++
// Create a vector containing n
//vectors of size m, all u=initialized with 0
vector > vec( n , vector (m, 0));
Example 2: how to take input in 2d vector in c++
std::vector> d;
//std::vector d;
cout<<"Enter the N number of ship and port:"<>in;
cout<<"\Enter preference etc..:\n";
for(i=0; i>temp;
d.push_back(temp);// I don't know how to push_back here!!
}
}