Untitled
unknown
plain_text
a year ago
566 B
3
Indexable
#include <iostream> #include <SFML/Graphics.hpp> using namespace std; using namespace sf; int main(){ // variant 2 // int A, B, STEP; A = 12; B = 7; STEP = 2; // A | B = 12 | 7; // A | B = 01100 | 00111; // A | B = 01111; // A | B = 15; // // A ^ B = 12 ^ 7; // A ^ B = 01100 ^ 00111; // A ^ B = 01011; // A ^ B = 11; // // A << STEP = 110000; int v1 = A | B; int v2 = A ^ B; int v3 = A << STEP; cout << v1 << endl << v2 << endl << v3; return 0; }
Editor is loading...
Leave a Comment