[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-devel
Subject: Re: Stupid C++ question
From: Jan Ekholm <chakie () infa ! abo ! fi>
Date: 1999-07-12 8:01:28
[Download RAW message or body]
On Sun, 11 Jul 1999, Werner Trobin wrote:
>Hi!
>
>I´m wondering if it is possible to do something like this:
>
>struct FOO {
> long bar;
> QList<FOO> fooBar;
>};
It's possible. That's the same technique you use when you make nodes for
trees (or similar containers), although you often then have something
like:
struct Node {
FooType m_PayLoad;
struct Node * m_Left;
struct Node * m_Right;
}
---------------------+------------------------------------------------------
Jan 'Chakie' Ekholm | CS at Åbo Akademi University, Turku, Finland
Linux Inside | I'm the blue screen of death, no-one hears you scream
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic