Compare commits
No commits in common. "lesson_49" and "master" have entirely different histories.
|
|
@ -1,27 +0,0 @@
|
||||||
/*
|
|
||||||
* main.cpp
|
|
||||||
*
|
|
||||||
* Created on: 8 сент. 2021 г.
|
|
||||||
* Author: alexander
|
|
||||||
*/
|
|
||||||
#include <iostream>
|
|
||||||
#include <iomanip>
|
|
||||||
|
|
||||||
using namespace std;
|
|
||||||
|
|
||||||
int main()
|
|
||||||
{
|
|
||||||
unsigned char option_viewed = 0x01;
|
|
||||||
unsigned char option_edited = 0x02;
|
|
||||||
unsigned char option_favorited = 0x04;
|
|
||||||
unsigned char option_shared = 0x08;
|
|
||||||
unsigned char option_deleted = 0x80;
|
|
||||||
|
|
||||||
unsigned char myArticleFlags = 0x0;
|
|
||||||
|
|
||||||
cout << (myArticleFlags | option_viewed) << endl;
|
|
||||||
cout << (myArticleFlags & option_viewed) << endl;
|
|
||||||
cout << (myArticleFlags & ~option_viewed) << endl;
|
|
||||||
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
Loading…
Reference in New Issue