Search:

Type: Posts; User: Norm

Search: Search took 0.11 seconds.

  1. Replies
    23
    Views
    1,410

    Re: Help with this binary tree

    It may mean that the way you load the binary tree doesn't preserve the correct order of operations.
    I don't think you desired output: AB*CDE^^/
    is right. Shouldn't it be: AB*CD^E^/

    Have you...
  2. Replies
    23
    Views
    1,410

    Re: Help with this binary tree

    then (C^D^E)
    would be: (C^(D^E))
  3. Replies
    23
    Views
    1,410

    Re: Help with this binary tree

    What is the ^ operator?
  4. Replies
    23
    Views
    1,410

    Re: Help with this binary tree

    What is the algorithm for transiting in post order? Does your code follow that algorithm?
  5. Replies
    23
    Views
    1,410

    Re: Help with this binary tree

    The code executes ok now. Do you have a design or algorithm for what the code is supposed to do?
    I don't see any comments that describe the logic of what it is supposed to do.
    Without the...
  6. Replies
    23
    Views
    1,410

    Re: Help with this binary tree

    It doesn't execute. I get this:
    Error: Main method not found in class TestingBTN, please define the main method as:
  7. Replies
    23
    Views
    1,410

    Re: Help with this binary tree

    If I can't compile the code I can't test it. If you want help post code that compiles and executes and shows the problem.
  8. Replies
    23
    Views
    1,410

    Re: Help with this binary tree

    Please post the current version of the code that compiles, executes and shows the problem.
    What is posted here now, does not compile without errors.
  9. Replies
    23
    Views
    1,410

    Re: Help with this binary tree

    The posted code does not compile without errors. Correct the errors if you want anyone to help you test the code.
  10. Replies
    23
    Views
    1,410

    Re: Help with this binary tree

    The compiler can not find a constructor in the class that has a matching argument list.
    Either change the new statement so its args match the existing constructor's args
    Or add a new constructor to...
  11. Replies
    23
    Views
    1,410

    Re: Help with this binary tree

    Please copy the full text of the error message and paste it here. We need to see the full text to be able to know where and what the exact problem is.
Results 1 to 11 of 11