1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/c++/bash-offline/kompiluj.sh Tue Aug 17 22:39:16 2010 +0200
1.3 @@ -0,0 +1,4 @@
1.4 +#!/bin/bash
1.5 +
1.6 +g++ program.cpp -o bash-offline;
1.7 +
2.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
2.2 +++ b/c++/bash-offline/program.cpp Tue Aug 17 22:39:16 2010 +0200
2.3 @@ -0,0 +1,10 @@
2.4 +#include <stdlib.h>
2.5 +#include <iostream>
2.6 +
2.7 +int main() {
2.8 + using namespace std;
2.9 + cout << "\033[22;31m" << "Vítejte v offline shellu" << "\033[0m" << endl;
2.10 + system("/bin/bash");
2.11 + cout << "\033[22;31m" << "Končím offline shell" << "\033[0m" << endl;
2.12 +}
2.13 +