This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//To print 'hex' and 'oct' one can simply use std::cout | |
int a = 10; | |
std::cout<< hex << a; | |
std::cout<< oct << a; | |
std::cout<< dec << a; | |
//To see the binary whats comes in handy is std::bitset | |
#include <iostream> | |
#include <bitset> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Compiler Error C2220 - warning treated as error - no 'file' file generated | |
Fixes(Any One) - | |
1. Compile at lower warning level - "Properties->C/C++->General->Warning Level" | |
2. Compile without "/WX" - "Properties->C/C++->General->Treat Warning As Errors" | |
3. Suppress the Error - #pragma warning ( disable : 4996 ) |