Horje
c++ cast char to string Code Example
c++ cast char to string
// example
char sczName[] = {"Jakes"};
std::string strName = std::string(sczName);

/* SYNTAX
#include <string>
std::string(<char-to-convert>)
*/
char to string c++
std::cout << std::string(1, c) << std::endl;




Cpp

Related
who to include a library c++ Code Example who to include a library c++ Code Example
c++ sort vector Code Example c++ sort vector Code Example
how to round to nearest whole number unity Code Example how to round to nearest whole number unity Code Example
2d vector Code Example 2d vector Code Example
c++ add to array Code Example c++ add to array Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
7