//============================================================================== // Project : C++-Kurs @ Sultex Limited // Modul : C++ // Title : Übung 2 "Klasse": Ausgangslage // Author : `Ihr Name` // Tab-Width : 2 /*///=========================================================================== * Description: Klasse implementieren aufgrund applikatorischer Vorgaben. Mit Strings als char-Array arbeiten. Bearbeitung von Arrays aus Objekten. Allozierung auf Stack und Heap vergleichen. Performanceuntersuchung mit inline-Methoden (-> Kompiler-Option: -O2) * History : 03.10.05: Initial Version. /*///=========================================================================== // 1 2 3 4 5 6 7 8 //345678901234567890123456789012345678901234567890123456789012345678901234567890 //============================================================================== #ifndef KLASSE_H #define KLASSE_H 1 #include #include #include "StatisticStopWatch.h" using namespace std; // Klassen-Definitionen: // Person: // Eine Person hat einen Namen (20 Char's) und eine Nummer. class Person { public: int getNr(); const char* getName(); private: }; // Funktions-Prototypen: // Ausgabe eines Arrays von Personen-Objekten auf die Konsole. // pPers: Pointer auf erstes Personen-Objekt im Array. // pLen: Laenge des Personen-Arrays. void printPersArr(Person* pPers, int pLen); #endif /*KLASSE_H*/