Ok, let me restate my question:
1. How do I write the results of a Binary Tree in C# to a tetx file. I found that part but I have not found how to link the C# code to my main code to get output to a text file.
When you say put tags in my code can you give an example of what you mean, thanks.
2. Here is my output code to a text file:
By The Way, I am using Visual Studio 2008:
...
User Profile
Collapse
-
jcolbert30 started a topic Write to a file all of the values of a Binary Tree Nodes at the specified depth from.in C SharpWrite to a file all of the values of a Binary Tree Nodes at the specified depth from.
1. Implement the following C# method to write to a file all the values of the binary tree nodes at the specified depth from the root. Root has depth 0. Start from the leftmost node. An iterative solution is preferred over a recursive one.
class TreeNode
{
public int Value { get; set; }
public TreeNode LeftChild { get; set; }
public TreeNode RightChild { get; set; }
public TreeNode Parent {...
No activity results to display
Show More
Leave a comment: