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 
    colour.push_back("Blue"); 
    colour.push_back("Red"); 
    colour.push_back("Orange"); 
    colour.push_back("Yellow"); 
  
    // Print Strings stored in Vector 
    for (int i = 0; i < colour.size(); i++) 
        cout << colour[i] << "\n"; 
}

Learn ReactJs, React Native from akashmittal.com