So how should I do that , use the define here ? :confused:
Type: Posts; User: Cmuppet
So how should I do that , use the define here ? :confused:
yes I allready changed that, it was because I had too rewrite algorithms in C :o
for instance, in the prototype statement ; void buildHeap(int *array,int SIZE);
it says error C2059 syntax error: ')'
thanks for the help :)
Hi,
I have to write a program that creates a 'priority queue'.
I'ts something from datastructures,i've no clue how too explain that here.
Just hopeing my code makes some sense.
I'ts not...
Thanks :) , it works now ! :D Thanks again
Thanks ! :) I did notice though when debugging ,and I enter say 50 for num , 7 for ans , and 0.01 for tol , it just returns 7.
Plus when I tried typeing in a double it didn't work the way I wanted,...
Thanks , it works now , except that the answer isn't right I think.
Shouldn't the answer for example with n = 8 and k = 3 be 512.
Instead it returns then 56 :confused:
I have this code that should calculate the square root of a number useing newton's method.
It compiles and runs , but while I debug ,it doesn't give the right answer for most numbers (except for the...
Thanks , I made that change to my code, but it still returns a zero everytime :confused:
Hi , I have to write a program that calculates the number of possible combinations k of n objects.
It has to be a recursive program.
It compiles and runs, but while debugging while I type in some...
I did that allready , & it works fine now :)
I figured out it was due to the EOF define I used.
I just deleted that & changed it to zero instead , now it works.
Still can't figure out why it didnt work with the EOF though :confused: oh well...
I think it's stuck printing "Enter next number:<EOF> to stop", because when I make a remark (*/) out of the second while loop, it's still stuck in the endless printloop.
for some reason i can't edit it again.
the only chance is void *number should be int number.
i'll edit it again :)
Im still getting a endless printloop?
Can somebody maybe please tell me why the program is stuck in an endless printloop ?
Thanks :)
I did , I edited the code :)
I've made a few changes, but now it's stuck in an endless printloop ?
Thanks :)
I did that , & now im only getting an error while debugging, when I type a zero , when asked to enter a number ?
I'll try to figure it out myself first ,if I can't , I'll be back :)
The book is Data structures, a pseudocode aproach with C . So no, im at the right site.
Hi, Im getting this error message :
error C2129: static function 'int emptyStack(STACK *)' declared but not defined
What im I doing wrong , here im clueless. :confused:
#include...
Your feeling so superior aren't you ,because you know C?
You don't understand , I don't have too write code , just find the infix expressions to the post/prefix expressions I posted in my first post.
Sorry I don't have code , it's just a question . Hope I didn't bother you too much :rolleyes: