Answers for "how to change character to string in c++"

C++
1

c++ char to string

#include <iostream>
using namespace std;

int main()
{
  char c = 'l';
  string str;
  str.push_back(c);
}
Posted by: Guest on June-20-2020

Code answers related to "how to change character to string in c++"

Browse Popular Code Answers by Language