Hey guys! I am still very new to C++ and am currently learning about converting decimal to binary, and binary math. I decided to try and make a simple program that converts it for you, using the remainder method for conversion. My program works, but my question is do I have the format right? Or is it jumbled up. I don't know if I put things like the global variables and the prototyping in the correct spots.
Ah very true. I had them as global before because instead of a default case with a cout in it, I had the function type as string and return binary; but it wouldn't return with the variables inside the function. Changing that now, thanks for pointing it out!