                               // Kapitel 4 - Programm 3 - UEBREF.CPP
#include <iostream.h>
#include <stdio.h>

void Pfusche(int Ein1, int &Ein2);

int main()
{
int Zaehler = 7, Index = 12;

   cout << "Die Werte sind ";
   printf("%3d %3d\n", Zaehler, Index);

   Pfusche(Zaehler, Index);

   cout << "Die Werte sind ";
   printf("%3d %3d\n", Zaehler, Index);

   return 0;
}

void Pfusche(int Ein1, int &Ein2)
{
   Ein1 = Ein1 + 100;
   Ein2 = Ein2 + 100;
   cout << "Die Werte sind ";
   printf("%3d %3d\n", Ein1, Ein2);
}


// Ergebnis beim Ausführen
//
// Die Werte sind    7  12
// Die Werte sind  107 112
// Die Werte sind    7 112
