AGB  ·  Datenschutz  ·  Impressum  







Anmelden
Nützliche Links
Registrieren
Thema durchsuchen
Ansicht
Themen-Optionen

C++ und Delphi -> Rekursiv Problem

Ein Thema von clues1 · begonnen am 18. Sep 2005 · letzter Beitrag vom 18. Sep 2005
 
clues1

Registriert seit: 11. Feb 2004
97 Beiträge
 
#11

Re: C++ und Delphi -> Rekursiv Problem

  Alt 18. Sep 2005, 18:31
HILFE ich blicke nicht mehr durch ???

Dieser Code bricht eher ab als der untere.
Im gegensatz zum oberen habe ich nur die printf Zeilen drin. Hier kommt aber die Meldung siehe "Fehler2.png"
Code:
int FLoadNodes(int id) { 
  int i;
  int c;
 
  i = -1;
  do { 
    i++; // inc
   
    c = LoadNodes(id, 1); // count of the Nodes
    printf("B:");
    printf(itoa(id));
    printf("|");
    printf(itoa(i));
    printf("|");
    printf(itoa(c));
    printf("|");

    if (i < c) { 
      if (ReadNode(i, &NavRes)) { 
         FLoadNodes(NavRes.ID);
         // Saving now the result in a treeview
         // NavRes.ID  <= ID of the entry in the DB (UNIQUE)
         // NavRes.txt  <= Text of the entry in the DB for the caption of the node in a treeview

      } 
    } 
   
    c = LoadNodes(id, 1); // count of the Nodes
    printf("R:");
    printf(itoa(id));
    printf("|");
    printf(itoa(i));
    printf("|");
    printf(itoa(c));
    printf("|");

  } while (! ((c == 0) || (i >= c-1)));
}
hier kommt "Fehler3.png"
Code:
int FLoadNodes(int id) { 
  int i;
  int c;
 
  i = -1;
  do { 
    i++; // inc
   
    c = LoadNodes(id, 1); // count of the Nodes

    if (i < c) { 
      if (ReadNode(i, &NavRes)) { 
         FLoadNodes(NavRes.ID);
         // Saving now the result in a treeview
         // NavRes.ID  <= ID of the entry in the DB (UNIQUE)
         // NavRes.txt  <= Text of the entry in the DB for the caption of the node in a treeview

      } 
    } 
   
    c = LoadNodes(id, 1); // count of the Nodes

  } while (! ((c == 0) || (i >= c-1)));
}

@Dax ; ist egal ob da oder nicht da.
Angehängte Grafiken
Dateityp: png fehler3_189.png (20,7 KB, 4x aufgerufen)
Dateityp: png fehler2_997.png (20,0 KB, 1x aufgerufen)
Meine Easy Database Komponenten[/url] (EDB) Datenbankfuntionen für Delphi Personal/Std und höher. MySQL, MSSQL, Access (JET), Oracle, CSV, TXT, DBase und noch viele mehr. http://www.delphipraxis.net/internal...ct.php?t=37505
  Mit Zitat antworten Zitat
 


Forumregeln

Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are aus

Gehe zu:

Impressum · AGB · Datenschutz · Nach oben
Alle Zeitangaben in WEZ +1. Es ist jetzt 20:46 Uhr.
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz