No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
3 Posted Topics
using namespace std; struct karmand{ char nam[10]; char shomare[10]; char sx[10]; char mm[10]; char rgh[10]; }list[s]; void search(); void prin(int i); void input_file(); void enter(); int a; void menu_select(){ char p[10]; int c; system("cls"); printf("1)enter a record:\n"); printf("2)sort the file:\n"); printf("3)search the file:\n"); printf("4)quit:\n"); do{ printf("please enter your choice:"); gets(p); … | |
this code was error.please help me fix it include <iostream> include <conio.h> include <algorithm> using namespace std; int a[]={1,5,7,4,9,8}; BST*binary_search_tree; struct BST{ int value; BST* left; BST* right; }; int search_bst(BST* node,int key){ if(node==NULL) return -1; if(key<node->value) return search_bst(node->left,key); if(key>node->value) return search_bst(node->right,key); else return node->value; } void insert_bst(BST* &treeNode,BST* newNode){ … | |
The End.