Horje
char to string c++ 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;
why convert char* to string c++
char *cStr = "C++";
std::string Str = std::string(cStr);




Cpp

Related
number of nodes of bst cpp Code Example number of nodes of bst cpp Code Example
find prime number c++ Code Example find prime number c++ Code Example
c++ replace Code Example c++ replace Code Example
c++ char array size Code Example c++ char array size Code Example
++ how to write quotation mark in  a string Code Example ++ how to write quotation mark in a string Code Example

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