c++/bash-offline/program.cpp
author František Kučera <franta-hg@frantovo.cz>
Sat, 20 Jan 2018 21:44:45 +0100
changeset 55 2fbf53cf0782
parent 13 7453f9ec8b30
permissions -rw-r--r--
jvm-jni-starter: spouštění JVM (Java) z C/C++ přes JNI
     1 #include <stdlib.h>
     2 #include <iostream>
     3 
     4 int main() {
     5     using namespace std;
     6     cout << "\033[22;31m" << "Vítejte v offline shellu" << "\033[0m" << endl;
     7     system("/bin/bash");
     8     cout << "\033[22;31m" << "Končím offline shell" << "\033[0m" << endl;
     9 }
    10