I can directly output the number formatting in decimal, octal, and hexadecimal by.
Code:
cout<<dec<<15<<endl
<<oct<<15<<endl
<<hex<<15<<endl;
However, I can't output the binary number by cout<<bin<<15<<endl;
Is there a method which I can directly output the binary number by just as I output the octal number above?
Thank you.