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

Code Example 1

#include <iostream>
using namespace std;

int main()
{
  char c = 'l';
  string str;
  str.push_back(c);
}

Code Example 2

// example
char sczName[] = {"Jakes"};
std::string strName = std::string(sczName);

/* SYNTAX
#include <string>
std::string(<char-to-convert>)
*/

Code Example 3

std::cout << std::string(1, c) << std::endl;

Learn ReactJs, React Native from akashmittal.com