Answers for "convert binary to decimal c++ stl"

C++
7

convert binary to decimal c++ stl

string bin_string = "10101010";
int number =0;
number = stoi(bin_string, 0, 2);
// number = 170
Posted by: Guest on September-08-2020

Code answers related to "convert binary to decimal c++ stl"

Browse Popular Code Answers by Language