Advertisement
Koridev

Untitled

Jan 7th, 2020
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.64 KB | None | 0 0
  1. #include <iostream>
  2. #include <stdlib.h> // system
  3. #include <chrono>
  4. #include <thread>
  5. #include "g_header.h"
  6.  
  7.  
  8. int menu(int answer)
  9. {
  10.     switch (answer)
  11.     {
  12.     case 1:
  13.         //rServer(lang, dCore, dChannel); // Start the Server
  14.         break;
  15.     case 2:
  16.     //  sStop(lang, dCore, dChannel); // Stop Server
  17.         break;
  18.     case 8:
  19.         //ServerOnlineCheck();
  20.         std::cout << "bye\n";
  21.         exit(1);
  22.         break;
  23.     default:
  24.         std::cout << "Bad choice! Please try again:" << std::endl;
  25.     }
  26.     return answer;
  27. }
  28.  
  29. int main() {
  30.     SelectLang sLang;
  31.     std::cout << sLang.IsLang();
  32.  
  33.     SleepTime sSleep;
  34.     sSleep.iSleep(5);
  35.     std::cout << "Sleeped for 5 sec\n";
  36.     return 0;
  37. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement