Hello, I am programming a calculator for a class. The program takes in input in decimal, binary, trinary, hexadecimal, murnified, mayan, or positionless and converts them to ints to process commands. Then before they are printed out they are converted back to whichever system they need to be. My problem is with converting the ints back into strings of whichever type. Here is my code so far:
So I need to write the IntConversion function so it takes the remainder and returns a character I can concatenate onto the string until the whole number is built and the loop drops out. I can not use itoa or string streams, so how else can I convert and int? Thanks.