Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*include <stdio.h>*/
- #include <iostream>
- /*include <sys/types.h>*/
- /*include <unistd.h>*/
- /*include <signal.h>*/
- /*include <strings.h>*/
- /*using namespace std;*/
- int main () {
- char option[1];
- std::cout << "Welcome to LXCNode SSH Management Panel.\n\n";
- std::cout << "1: Reboot\n";
- std::cout << "2: Enter\n";
- std::cout << "3: Exit\n";
- std::cout << "Please select an option: ";
- std::cin.getline(option,1);
- if ( option[0] == '1' ) {
- std::cout << "Error: Reboot not implemented.\n";
- option[0] = '3';
- }
- if ( option[0] == '2' ) {
- std::cout << "Error: Enter not implemented.\n";
- option[0] = '3';
- }
- if ( option[0] == '3' ) {
- std::cout << "Bye.\n";
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment