c 2b 2b cast char to string

Solutions on MaxInterview for c 2b 2b cast char to string by the best coders in the world

showing results for - "c 2b 2b cast char to string"
Irene
16 Jan 2021
1// example
2char sczName[] = {"Jakes"};
3std::string strName = std::string(sczName);
4
5/* SYNTAX
6#include <string>
7std::string(<char-to-convert>)
8*/
Alonso
12 Mar 2020
1std::cout << std::string(1, c) << std::endl;