this is my code so far.
void Bin_to_Base10() {
std::ostringstream os;
os << number1;
std::string str = os.str();
l = binary.length();
strcpy (binary,number1);
for (int i=l; x<0; x--) {
if (binary[i]==1) {
x=x+c;
c=c*2;}
}
}

New Topic/Question
Reply



MultiQuote





|