Check out example codes for "convert char to string - c++". It will help you in understanding the concepts better.

Code Example 1

// CPP program to get a string from single 
// character. 
#include<bits/stdc++.h> 
using namespace std; 
  
string getString(char x) 
{ 
    // string class has a constructor 
    // that allows us to specify size of 
    // string as first parameter and character 
    // to be filled in given size as second 
    // parameter. 
    string s(1, x); 
  
    return s;    
} 
  
int main() { 
  cout << getString('a'); 
  return 0; 
}

Learn ReactJs, React Native from akashmittal.com