c 2b 2b convert const char 2a to int

Solutions on MaxInterview for c 2b 2b convert const char 2a to int by the best coders in the world

showing results for - "c 2b 2b convert const char 2a to int"
Corey
11 Sep 2019
1#include <iostream>
2#include <sstream>
3
4const char* value = "1234567";
5stringstream strValue;
6strValue << value;
7
8unsigned int intValue;
9strValue >> intValue;
10
11cout << value << endl;
12cout << intValue << endl;