Skip to content

Instantly share code, notes, and snippets.

@kjk
Last active July 25, 2020 11:35
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 kjk/d2625c0136e7033c50c1b43acf3a2bd6 to your computer and use it in GitHub Desktop.
Save kjk/d2625c0136e7033c50c1b43acf3a2bd6 to your computer and use it in GitHub Desktop.
#include <iostream>
#include <string>
#include <bitset>
int main(int argc, char **argv) {
int a = 0b0101;
a |= 0b1101;
std::cout << "a = " << std::bitset<8>(a) << std::endl;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment