C++ Buch, vom Eng. ins Deutsche übersetzen. (über Funktionen)



  • "In general, a C++ function is activated, or called, by another function, an the function header describes the interface between a function the that calls it.
    The part preceding the function name is called the function return type."

    Nun, was mich verwirrt ist: "The part preceding the function name is called the function return type." Was bedeutet das genau?



  • Bladestorm schrieb:

    Nun, was mich verwirrt ist: "The part preceding the function name is called the function return type." Was bedeutet das genau?

    Das vor dem Funktionsnamen der Rückgabetyp steht. Also bei

    int func()
    {
    ...
    }
    

    Ist func der Funktionsname und int der Rückgabetyp.



  • Bladestorm schrieb:

    "In general, a C++ function is activated, or called, by another function, an the function header describes the interface between a function the that calls it.
    The part preceding the function name is called the function return type."

    Nun, was mich verwirrt ist: "The part preceding the function name is called the function return type." Was bedeutet das genau?

    Der Teil der dem Funktionsnamen vorgestellt ist, wird der Rückgabetyp der Funktion genannt.

    // int => Rückgabetyp (Datentyp), teiweise auch Rückgabewert genannt, wobei sich
    //        dies eher auf den konkreten Wert der zurückgegeben wird bezieht.
    // foo => Funktionsname
    int foo()
    


  • VIELEN DANK!!!


Anmelden zum Antworten