How to display notational base for a number?

Well what the heck do you mean by notational base? It just means the prefix we give for hexadecimal and octal numbers. So in C++ there is an io manipulator called ‘showbase’ which shows the base and ‘noshowbase’ which hides the base from display. An e.g. from MSDN… [sourcecode language=’cpp’]#include int main( ) {    […]
Continue reading…