Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

c++ convert const char* to int

#include <iostream>
#include <sstream>

const char* value = "1234567";
stringstream strValue;
strValue << value;

unsigned int intValue;
strValue >> intValue;

cout << value << endl;
cout << intValue << endl;
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #convert #const #int
ADD COMMENT
Topic
Name
2+7 =