convert decimal to binary c++ gfg 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