Rallias

Untitled

May 7th, 2013
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.86 KB | None | 0 0
  1. /*include <stdio.h>*/
  2. #include <iostream>
  3. /*include <sys/types.h>*/
  4. /*include <unistd.h>*/
  5. /*include <signal.h>*/
  6. /*include <strings.h>*/
  7.  
  8. /*using namespace std;*/
  9.  
  10. int main () {
  11. char option[1];
  12. std::cout << "Welcome to LXCNode SSH Management Panel.\n\n";
  13. std::cout << "1: Reboot\n";
  14. std::cout << "2: Enter\n";
  15. std::cout << "3: Exit\n";
  16. std::cout << "Please select an option: ";
  17. std::cin.getline(option,1);
  18.  
  19. if ( option[0] == '1' ) {
  20. std::cout << "Error: Reboot not implemented.\n";
  21. option[0] = '3';
  22. }
  23.  
  24. if ( option[0] == '2' ) {
  25. std::cout << "Error: Enter not implemented.\n";
  26. option[0] = '3';
  27. }
  28.  
  29. if ( option[0] == '3' ) {
  30. std::cout << "Bye.\n";
  31. }
  32.  
  33. return 0;
  34. }
Advertisement
Add Comment
Please, Sign In to add comment