Hello guys! This is my first time posting in this site! I've only been lurking around, but anyways! I am having a lot of trouble getting this dumb function to work! I am really running out of options so please help me and tell me what is wrong with my function! :( I keep getting stack overflow error messages...Anyways, here is my program, again I am only having trouble with my final function which is the HexString function. Basically we have to return base numbers as Hexadecimal strings.
When one writes a recursive function, you should make sure they have appropriate base cases. Your HexString function calls itself (twice) unconditionally, so of course you're going to run out of stack. Line 76 cannot be reached.
Understood, should the base cases be the same from my BinaryString function? So I have to call the function only at the end just like in my previous function? Also what exactly should be put in my default inside my switch statement?
Thanks for responding!
Oh man I feel like Ia m close to the answer now!!!!! But I still need to fix the switch statement, now I don't get the stack overflow, instead I get output but I get different symbols for HexString and no numbers just the letters from the switch statement and occassionally symbols. What exactly must I fix in this switch statement? I am sort of running out of ideas...