Einzelnen Beitrag anzeigen

Oxmyx

Registriert seit: 21. Sep 2004
499 Beiträge
 
#5

Re: Funktionsaufruf mit Parameter vom Typ Record

  Alt 23. Dez 2005, 19:09
Ja, in C++ geht das z.B. so:

Code:
class Point
{
    Point() {}
    Point(float _x, float _y) : x(_x), y(_y) {}
    ~Point() {}
    float x, y;
}

////////////
Aufruf:

myFunc(Point(0.0f, 1.0f));
  Mit Zitat antworten Zitat