No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
4 Posted Topics
I'm writing a lite version of the stty command for school, and I keep getting this error at compile: showtty.c:40: error: expected ‘;’, ‘,’ or ‘)’ before ‘&’ token My code: [CODE] #include <stdio.h> #include <stdlib.h> #include <termios.h> /** ** showtty ** displays some of current tty settings **/ main(int … | |
My delete function set works perfectly for all nodes but the leaves. The program doesn't crash until I try traversal again, not when actually deleting a node. Here is my code: [CODE=c]void BinaryTree::DeleteNode(int deleteItem) { TNode *current; TNode *trailCurrent; bool found = false; if (root == NULL) cout << "THE … | |
I'm trying to implement the non recursive traversal in a binary tree. I am having trouble getting started with my stack, and have no idea where to begin here. I have written a stack to hold int's before, but never to hold nodes(or whatever it needs to hold...pointers?) Here is … | |
I am writing a program to manipulate a stack containing integers using push, pop, print, etc. The only thing I have left is to write a function called copy. Here is what I've tried so far: [CODE] void Stack::Copy(Stack otherStack) { otherStack.top = top; for (int ii = top-1; ii … |
The End.