vector <int> v(n, X);. The above code initialize a 1D vector of size n, all positions filled with value X. Syntax to Initialize a 2D vectors.
確定! 回上一頁