Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdlib.h>
- #include <string.h>
- struct Knoten
- {
- int data;
- struct Knoten *links;
- struct Knoten *rechts
- };
- void preorder(struct Knoten *r);
- void inorder(struct Knoten *r);
- void postorder(struct Knoten *r);
- struct Knoten *Insert(struct Knoten *root, int new_knoten_value);
- int main()
- {
- char number[10];
- int a[]= {8,9,11,15,19,20,21,7,3,2,1,5,6,4,13,14,10,12,17,16,18};
- int alength=21;
- int i;
- int j;
- int zahl;
- char *eptr=NULL;
- int endeSize=4;
- char endeString="ende";
- while(strlen(number)!= endeSize && strncmp(number,endeString,endeSize)!=0){
- printf("Bitte geben Sie eine Zahl ein:");
- gets(number);
- zahl=strtol(number,&eptr,10);
- }
- return EXIT_SUCCESS;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement