Answers for "convert binary string into decimal value in c++"

C++
15

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 string into decimal value in c++"

Browse Popular Code Answers by Language