Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

how to declare a 2d vector stack

#include<iostream>
int main(){ 
    int m = 2, n = 5;

    vector<vector<int>> vec(m, vector<int> (n, 0));

    return 0;
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #declare #vector #stack
ADD COMMENT
Topic
Name
4+8 =