converting char into string in c++ 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);
}