|
||||||
| C and C++ C and C++ forum for discussing all forms of C except for C#. These languages are powerful low level languages used for creating Operating Systems, Device Drivers, compilers and much more. |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
|
||||
|
Re: tree for infix expression
Moved to correct forum.
Without having BST.h, it's a little hard to see what all might be happening. What input/output are you getting?
__________________
CodeCall Blog | CodeCall Wiki | Shareware Programming is a branch of mathematics. My CodeCall Blog | My Personal Blog |
|
||||
|
Re: tree for infix expression
i am actually using some other macors and all here please consider which are required for the above program only.
Code:
#ifndef __BSTREE__
#define __BSTREE__
typedef struct Bin_Srch_Tree BST_t;
struct Bin_Srch_Tree
{
BST_t *left;
int data;
BST_t *right;
};
extern BST_t *nodes[20];
#define Node_Inserted_Successfully 1
#define Node_Creation_Failed 2
#define Duplication_Not_Allowed 3
#define MAX 20
BST_t *create_node(int );
int insert(BST_t **, int );
void inorder(BST_t *);
void preorder(BST_t *);
void postorder(BST_t *);
extern int top, b;
int empty();
void push(BST_t **, BST_t *);
BST_t* pop(BST_t **);
#endif
|
|
||||
|
Re: tree for infix expression
My guess is there may be an error with push or pop.
__________________
CodeCall Blog | CodeCall Wiki | Shareware Programming is a branch of mathematics. My CodeCall Blog | My Personal Blog |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Binary Tree with linked lists help | BlaineSch | Java Help | 5 | 04-28-2009 06:22 PM |
| AVL Tree balance problem | reignreborn1335 | C and C++ | 1 | 04-24-2009 07:13 AM |
| Binary tree with user input data | bbto | C and C++ | 5 | 03-14-2009 08:47 AM |
| B+ Tree C Implementation | makkx9 | C and C++ | 1 | 05-17-2008 06:12 PM |
| need help with simple C++ TicTacToe game with AI | flupke1 | C and C++ | 11 | 08-14-2007 11:27 AM |
All times are GMT -5. The time now is 06:55 AM.
Amrosama.cc
Arekbulski.cc
Debtboy.cc
Guest.cc
Jaan.cc
James.cc
Mathx.cc
Tsz.cc
Vswe.cc