1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
|
#include <iostream>
#include <iomanip>
using namespace std;
int main() {
int x,y,z;
x += y += z = 1;
count << x << " " << y << " " << z << endl;
x=5; y=2; z=1;
z += x<y ? y++ : x++;
cout << x << " " << y << " " << z << endl;
unsigned short int i;
i=0x00FF | ( (1<<11) | (1<<15) ) ;
cout << hex << uppervase << i << endl;
i=0xFF00 & ( (1<<11) | (1<<15) ) ;
cout << hex << uppercase << i << endl;
return 0;
} |