how to convert a char in string in cpp code example
Example: c++ char to string
#include <iostream>
using namespace std;
int main()
{
char c = 'l';
string str;
str.push_back(c);
}
#include <iostream>
using namespace std;
int main()
{
char c = 'l';
string str;
str.push_back(c);
}