restructure and add ipi texs

This commit is contained in:
2019-11-06 18:24:04 +01:00
parent e21da561fc
commit 8fd8d2a485
155 changed files with 129 additions and 0 deletions
@@ -0,0 +1,32 @@
class ListFloatArray :
public FloatArray { // Ableitung
public:
// Konstruktoren
ListFloatArray (); // leeres Feld
// Destruktor
~ListFloatArray(); // ersetzt ~FloatArray !!
// Indizierung
virtual float& operator[](int i);
// allgemeine Indexmenge
virtual int numIndices ();
virtual int minIndex ();
virtual int maxIndex ();
virtual bool isMember (int i);
private:
// lokal in der Klasse benutzte Datenstruktur
struct FloatListElem {
struct FloatListElem *next; // naechstes Element
int index; // der Index
float value; // der Wert
};
int n; // Anzahl Elemente
FloatListElem *p; // einfach verkettete Liste
FloatListElem* insert (int i, float v); // Fuege in Liste ein
FloatListElem* find (int i); // finde Index
} ;