"Binary", "Decimal", "Hexadecimal" are just different TEXTUAL ways to display numbers.
But how you display the number through text does not change the underlying operation. ten dividied by five is two... regardless of whether or not you display it as:
So when you say you have "binary numbers"... what does that mean? Do you have a string or something? If so... convert the string to an integer... then do the division normally.
Well if you want the remainder, you'd want to use integers rather than doubles.
Also... 1011 is one-thousand eleven... is that the number you intended? Or did you want eleven (which would be "1011" in binary)?
Also whatever number you get from the user is going to be in decimal, not in binary... because the user is inputting text and not actually a number. cin will assume the text is in decimal unless you tell it otherwise.
Unfortunately I don't think there's a way to tell cin to parse the text as binary, so you'll have to do that on your own.
And if you want to print the result as binary... you'll have to write your own function to format the number into a binary string. Or maybe you can use bitset to do this... honestly I'm not at all familiar with bitset because I never use it. So I just wrote my own functions to do it: