shushus

Спринт 2. Двойное двоеточие.

Dec 7th, 2022
238
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.42 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5.  
  6.  
  7. class SearchServer {
  8. public:
  9.     // перенесите сюда DocumentStatus
  10.     enum class DocumentStatus {
  11.     ACTUAL,
  12.     IRRELEVANT,
  13.     BANNED,
  14.     REMOVED,
  15. };
  16. };
  17.  
  18. int main() {
  19.     // выведите численное значение статуса BANNED
  20.     cout << static_cast<int>(SearchServer::DocumentStatus::BANNED) << endl;
  21.     return 0;
  22. }
Advertisement
Add Comment
Please, Sign In to add comment