Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <cstdlib>
- #include <cstdio>
- #include <cmath>
- #include<iostream>
- int main() {
- signed char BUF[2];
- BUF[0] = -84;
- BUF[1] = -2;
- short d1;
- d1 = (BUF[1] << 8) | BUF[0]; // | operator
- std::cout << d1 << std::endl;
- std::cin.get();
- }
Add Comment
Please, Sign In to add comment