:> cat test.c
// Demonstration von Ein- und Ausgabe
#include <iostream>
using namespace std;
int main()
{
int Zahleingabe;
int Doppel;
cout << "Bitte geben Sie eine Zahl ein!" << endl;
cin >> Zahleingabe;
Doppel = Zahleingabe * 2;
cout << "Das Doppelte dieser Zahl ist " << Doppel << "." << endl;
}
:> g++ test.c -o test
:> file test-help
test-help: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), for GNU/Linux 2.6.6, dynamically linked (uses shared libs), not stripped
:> ./test-help
Bitte geben Sie eine Zahl ein!
12
Das Doppelte dieser Zahl ist 24.