![]() |
![]() |
|
|
|||||||
| Programmierung Rat & Tat für Programmierer |
![]() |
|
|
Themen-Optionen | Ansicht |
|
|
|
|
#1 |
|
Inventar
![]() Registriert seit: 24.01.2001
Beiträge: 5.631
|
in C z.B :
Code:
struct s_oebb_bahnhof {
struct s_oebb_bahnhof *pNaechste,*pVorherige;
char ortschaft[40];
};
struct s_oebb_bahnhof global_1st_bahnhof;
global_1st_bahnhof.pVorherige= NULL;
global_1st_bahnhof.pNaechste= NULL;
...
/* 2. Haltestelle */
global_1st_bahnhof.pNaechste= malloc(sizeof(struct s_oebb_bahnhof));
global_1st_bahnhof.pNaechste->pVorherige= &global_1st_bahnhof;
global_1st_bahnhof.pNaechste->pNaechste= NULL;
...
|
|
|
|
![]() |
| Aktive Benutzer in diesem Thema: 1 (Registrierte Benutzer: 0, Gäste: 1) | |
|
|