Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

C++ int to char*

std::string s = std::to_string(number);
char const *pchar = s.c_str();  //use char const* as target type
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #int
ADD COMMENT
Topic
Name
5+4 =