next up previous
Persistenz von Klassen- bzw. Objekthierarchien


Beispiele oNaivZGe/iNaivZGe:

 
// File: iNaivZGe.cc

#include <iostream.h>
#include <PunktV.h>
#include <NaivRctk.h>
#include <NaivRtRn.h>
#include <NaivDrik.h>
#include <NaivKris.h>
#include <NaivZGeo.h>

int main()
{
  ZGeoObj z1;
  cin >> z1;
 
  cerr << "Flaeche z1: " << z1.flaeche() << endl;
}

 
./oNaivZGe  | ./iNaivZGe 
Error in GeoObj factory:
  read a [Dreieck]
  but don't know how to make the object
Flaeche z1: 120


next up previous