Add value to beginning of string

This is probably a stupid question, but how do you add a value to the beginning of a string (the left) instead of the end?

This is for an assignment and I have to convert the user input (always assuming its a valid decimal number) to binary and store it in a string. I've got up to dividing by two to get the remainder ...
Last edited on
Topic archived. No new replies allowed.