Greetings to all,
I am trying to implement task from subject via stack. It does not work for a reason unknown to me, so if anyone could space a moment and take a look.
Program should convert...
Type: Posts; User: bbanelli
Greetings to all,
I am trying to implement task from subject via stack. It does not work for a reason unknown to me, so if anyone could space a moment and take a look.
Program should convert...
Here's the solution:
void inorder (celltype *BTREE) {
int b = 0;
if(BTREE->leftchild)
{
if(BTREE->leftchild->label[0]!='0')
{
b++;
Thanks for explanation, matsp.
Now, inorder "problem" has been solved.
void inorder (celltype *BTREE) {
char temp = '0';
if(BTREE -> leftchild != NULL) inorder(BTREE ->...
Thx, it works perfectly. Me happy! :) Me also ashamed for such an error. :(
BTW, out of curiosity and for academic purpose only, could this be done without strcpy. No matter what I attempt to do...
Greetings to all,
I have a binary tree, in which data must be entered manually. Here is my code:
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
typedef struct cell_tag {