Initializing a vector of string type

Suman Barik
0

#include <bits/stdc++.h>

using namespace std;


int main()

{


// Initializing a vector of string type

vector<string> vec = { "Geeks", "For", "Geeks" };


for (int i = 0 ; i <= vec.size() - 1 ; i++)

cout << vec[i] << ' ';

return 0;

}


Tags

Post a Comment

0Comments
Post a Comment (0)