Zusammenfassung
Im nachfolgend gelisteten Programm distance.cpp werden 4 verschiedene Funktionen mit dem gleichen Namen dist definiert. Sie berechnen alle den Abstand eines durch 2 bzw. 3 Koordinaten definierten Punktes vom Nullpunkt, in zwei Funktionen sind die Koordinaten als double-Argumente anzugeben, in den beiden anderen Funktionen als int-Argumente.
Es gibt eine Programmiersprache, bei der man nicht sicher sein kann, daß zwei Operanden, zwischen denen ein + steht, auch wirklich addiert werden: C++.
Die Grundrechenarten sind scheinbar auch nicht mehr das, was sie früher einmal waren.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Preview
Unable to display preview. Download preview PDF.
Author information
Authors and Affiliations
Rights and permissions
Copyright information
© 1998 B.G. Teubner Stuttgart · Leipzig
About this chapter
Cite this chapter
Dankert, J. (1998). Überladen. In: C++ für C-Programmierer. Informatik & Praxis. Vieweg+Teubner Verlag. https://doi.org/10.1007/978-3-322-92730-9_3
Download citation
DOI: https://doi.org/10.1007/978-3-322-92730-9_3
Publisher Name: Vieweg+Teubner Verlag
Print ISBN: 978-3-519-02641-9
Online ISBN: 978-3-322-92730-9
eBook Packages: Springer Book Archive