Check out example codes for "vector of string in c++". It will help you in understanding the concepts better.

Code Example 1

// C++ program to demonstrate vector of strings using 
#include <bits/stdc++.h> 
using namespace std; 
int main() 
    // Declaring Vector of String type 
    vector<string> colour; 
    // Initialize vector with strings using push_back 
    // command 
    // Print Strings stored in Vector 
    for (int i = 0; i < colour.size(); i++) 
        cout << colour[i] << "\n"; 

Learn ReactJs, React Native from