Skip to content

Instantly share code, notes, and snippets.

@micklinISgood
Last active March 31, 2017 17:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save micklinISgood/5e9a3041e9e9dbece7e977d8e5cbd0fa to your computer and use it in GitHub Desktop.
Save micklinISgood/5e9a3041e9e9dbece7e977d8e5cbd0fa to your computer and use it in GitHub Desktop.
parseChar
#include<iostream>
using namespace std;
int main(){
char c;
c |= 1<<2;
c |= 1<<5;
//010 0100 $
/**
Binary Oct Dec Hex Glyph
010 0100 044 36 24 $
**/
cout << c;
cout << (short)c;
/* $36 */
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment