buggers....
I think this is confusing sometimes.
okay so the correct tree expression of
(5*2+(3*4-7))/(3+4/2)
is:
'/'
Type: Posts; User: sballew
buggers....
I think this is confusing sometimes.
okay so the correct tree expression of
(5*2+(3*4-7))/(3+4/2)
is:
'/'
okay, 'cept for the keying error on my part on the one node;
this is a correct representation of the expression I gave as :
(5*2+(3*4-7))/(3+4/2) ???
I wasn't sure about the parts (3*4-7)...
I am needing confirmation of the following:
Show the expression tree whose InOrder traversal is:
(5*2+(3*4-7))/(3+4/2)
'/'
...
I am getting a Seg Fault; can anyone explain the problem??
I believe this simple program is to find the # of instances a letter s occurs in the string literal "system" (which is obviously 2...
Still getting a Seg Fault
and are we sure the catstr function is okay.
What causes a Seg Fault anyways??
#include <stdio.h>
char * catstr(char * s1, const char * s2);
I am not following this recursive function. Please help me code this to get the value of n as it hits each part before and after recursive call.
#include <stdio.h>
void puzzle(int n)
{...
What's a good main() function to test this function ??
I tried the following but am getting a type mismatch and such.
Please explain what compilation error message means.
#include...
I have been reviewing this stuff on strings and I am confused.
Function needs to append contents of string s2 to the end of string 1 and return a pointer to resulting string.
Would the...
I understand now. Thanks.
Zen,
I am not following your logic of
< goes on left
> goes on right
Question: Show the search tree that would result if the following characters are inserted in the tree from left to right :
k e y b o a r d i n g
Then show the results of different types of...
Quzah: I know this is simple for you, but me being a NB, it is not so simple, not right off the bat at least.
I followed you up to
But what does the following mean???
I'll try that here, inserting code with tags.
Anyways, here's another ditty about binary search trees. I missed lecture on this and I don't follow my data structure's book on searches. Can you...
ok, so preorder is the only one that starts with parent and the root right off is a parent. Then goes down the left side of tree??
silly question here: How did you get the the binary tree to...
Got it to work. Thanks.
Please check out the file attached as it has a binary tree on it that I don't understand.
(1) it has interior leafs and I need to follow the logic about traversing such kind of binary tree
(2)...
need to get this source file to interact with my file with queue functions. Please Help !!
/********************/
/* queue_main.c */
/********************/
#include <stdio.h>
I have been foolin with this all day and still not sure what is going on.
I need a source file that has just the queue functions in it and all things pertaining to a queue
I need a source...
I got this to work FINALLY>
Thanks QuestionC most especially for your help.
Hey I am getting close here on this stack with arrays
please tell me what is wrong. It is printing just the last 6 in reverse? I need it to print the 1st 6 or the whole string in reverse. My...
only question I have right now is when my instructor says the queue functions have the same interface as the stack functions, does that mean that there is only one push and one pop function?? I ask...
QuestionC:
still getting problems. I assume from my make_empty function
I just don't know what to code it as. I am not following what you are saying and darn this stuff, I'd rather learn HTML I...
Ok, I am trying this with your help QuestionC.
I am getting a problem though.
this is my input and output after compilation as it is now:
here's the source file
here's a sample of a queue that a friend sent me.
I guess it works, however, I cannot theoretically use this as we were instructed to use the same interface as our stack.c file.
So I want to...
I am not following your line of thought.
I was told only to change the POP function.
Do I have to change both the POP and PUSH??