binary to decimal in cpp string code example
Example: convert binary to decimal c++ stl
string bin_string = "10101010";
int number =0;
number = stoi(bin_string, 0, 2);
// number = 170
string bin_string = "10101010";
int number =0;
number = stoi(bin_string, 0, 2);
// number = 170