#include <string>
#include <iostream>
#include <sstream>

class eigenerTyp
{
private:                            
  std::string Name;      
  float a;   
  float b;     
  float c;    
 
public:    
                         
  eigenerTyp(std::string Name, float a, float b, float c):
    Name(Name), a(a), b(b), c(c) { }
  float GetValue() const {return c; }; 
  std::string GetName() const {return Name;} 
};
 
 
std::string GetVariableName(eigenerTyp eigenVector[], int arraySize)
{
  std::ostringstream namestream;
 
  for(int i=0; i<arraySize;i++)
    {
      namestream << eigenVector[i].GetValue();
    }
   
  return namestream.str();
}
 
int main()
{
  eigenerTyp var1("baum",3.0,6.0,7.0);
  eigenerTyp var2("blume",1.0,8.0,7.4);
 
  eigenerTyp eigenVector[]={var1,var2};
 
  std::cout << eigenVector[0].GetValue(); //writes value of c
 
  std::cout << GetVariableName(eigenVector,2); //writes value of a
}
