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




Cpp

Related
remove specific element from vector c++ Code Example remove specific element from vector c++ Code Example
strip whitespace c++ Code Example strip whitespace c++ Code Example
split pdf Code Example split pdf Code Example
switch statement Code Example switch statement Code Example
vectors in c++ Code Example vectors in c++ Code Example

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