there are multiple functions I'm wanting to call within one another in the same else if statement. Is this possible? If so how would I do it? Here is the portion of code for that section. As you can see my three functions are 'bin2dec' 'GetInt' and 'dec2hex.'
cout << "Input binary number:";
cin >> bin;
bin2 = bin2dec(bin);
num2 = GetInt(bin2);
cout << "\nDecimal equivalant is:"<<bin2dec(bin)<< "\nHexadecimal equivelant is:"<<dec2hex(num2)<<endl;
instead of writing an entire function for binary to hex I'm taking my binary to dec then dec to hex. I already have the dec to hex function for another output. Anyway when displayed it gives me the correct dec value but only give me 0's for the hex values. It's not the functions themselves because they are used elsewhere and work fine. Can anyone tell me what I'm doing wrong with it?