Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

c++ cast char to string

// example
char sczName[] = {"Jakes"};
std::string strName = std::string(sczName);

/* SYNTAX
#include <string>
std::string(<char-to-convert>)
*/
 
PREVIOUS NEXT
Tagged: #cast #char #string
ADD COMMENT
Topic
Name
3+9 =