Referenz in C++

Daniel Feist <[email protected]>
Newsgroups gmane.linux.suse.programming
Message-ID <[email protected]>
Hallo,
Irgendwie verstehe ich noch nicht ganz, wie folgendes c++ Programm 
arbeitet:

#include <iostream>

void hoch_zaehler(int& zaehler)
{
    ++zaehler;
}
int main() 
{
    int ein_zaehler = 0;

    hoch_zaehler(ein_zaehler);
    std::cout << ein_zaehler;
    return (0);
}

Kann mir da jemand weiterhelfen, in meinem Buch ist das nur so angerissen 
und irgendwie habe ich gerade ein Brett vorm Kopf ;) 

-- 
Daniel Feist <[email protected]>

-- 
Um die Liste abzubestellen, schicken Sie eine Mail an:
    [email protected]
Um eine Liste aller verfügbaren Kommandos zu bekommen, schicken
Sie eine Mail an: [email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.