Gast
#127826
Hallo, ich will mit einer binären Suche eine Tabelle nach einem string durchsuchen. dazu habe ich folgende Funktion im Netz gefunden: http://www.codeguru.com/Cpp/Cpp/algorithms/search/article.php/c5095/ meine Tabelle und mein struct sihet im mom folgendermassen aus: const comm_struct comm_tab[] = { // command table {"igain"/*, igain}, // remote commands {"period", &period}, {"pgain", &pgain}, // {"", NULL} // end of table }; typedef struct{ char *parameter; char *PtrList; }comm_struct; wie muss ich mein struct anpassen und meine tabelle anpassen, damit sie mit der Funktion funktioniert?...danke!