Search:

Type: Posts; User: bbanelli

Search: Search took 0.00 seconds.

  1. Replies
    1
    Views
    10,213

    Infix to prefix conversion

    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...
  2. Here's the solution: void inorder (celltype...

    Here's the solution:


    void inorder (celltype *BTREE) {
    int b = 0;
    if(BTREE->leftchild)
    {
    if(BTREE->leftchild->label[0]!='0')
    {
    b++;
  3. Thanks for explanation, matsp. Now, inorder...

    Thanks for explanation, matsp.

    Now, inorder "problem" has been solved.


    void inorder (celltype *BTREE) {
    char temp = '0';
    if(BTREE -> leftchild != NULL) inorder(BTREE ->...
  4. Thx, it works perfectly. Me happy! :) Me also...

    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...
  5. String as the name of bin. tree node/root + inorder traversal question

    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 {
Results 1 to 5 of 5