Search:

Type: Posts; User: Cmuppet

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Replies
    7
    Views
    2,370

    So how should I do that , use the define here ? ...

    So how should I do that , use the define here ? :confused:
  2. Replies
    7
    Views
    2,370

    yes I allready changed that, it was because I had...

    yes I allready changed that, it was because I had too rewrite algorithms in C :o
  3. Replies
    7
    Views
    2,370

    for instance, in the prototype statement ; void...

    for instance, in the prototype statement ; void buildHeap(int *array,int SIZE);
    it says error C2059 syntax error: ')'

    thanks for the help :)
  4. Replies
    7
    Views
    2,370

    Priority queue's

    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...
  5. Replies
    5
    Views
    3,770

    Thanks :) , it works now ! :D Thanks again

    Thanks :) , it works now ! :D Thanks again
  6. Replies
    5
    Views
    3,770

    Thanks ! :) I did notice though when debugging...

    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,...
  7. Thread: Combinations

    by Cmuppet
    Replies
    6
    Views
    2,094

    Thanks , it works now , except that the answer...

    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:
  8. Replies
    5
    Views
    3,770

    Newton's method

    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...
  9. Thread: Combinations

    by Cmuppet
    Replies
    6
    Views
    2,094

    Thanks , I made that change to my code, but it...

    Thanks , I made that change to my code, but it still returns a zero everytime :confused:
  10. Thread: Combinations

    by Cmuppet
    Replies
    6
    Views
    2,094

    Combinations

    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...
  11. Thread: Stacks

    by Cmuppet
    Replies
    19
    Views
    4,956

    I did that allready , & it works fine now :)

    I did that allready , & it works fine now :)
  12. Thread: Stacks

    by Cmuppet
    Replies
    19
    Views
    4,956

    I figured out it was due to the EOF define I...

    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...
  13. Thread: Stacks

    by Cmuppet
    Replies
    19
    Views
    4,956

    I think it's stuck printing "Enter next...

    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.
  14. Thread: Stacks

    by Cmuppet
    Replies
    19
    Views
    4,956

    for some reason i can't edit it again. the only...

    for some reason i can't edit it again.
    the only chance is void *number should be int number.
  15. Thread: Stacks

    by Cmuppet
    Replies
    19
    Views
    4,956

    i'll edit it again :)

    i'll edit it again :)
  16. Thread: Stacks

    by Cmuppet
    Replies
    19
    Views
    4,956

    Im still getting a endless printloop?

    Im still getting a endless printloop?
  17. Thread: Stacks

    by Cmuppet
    Replies
    19
    Views
    4,956

    Can somebody maybe please tell me why the program...

    Can somebody maybe please tell me why the program is stuck in an endless printloop ?
    Thanks :)
  18. Thread: Stacks

    by Cmuppet
    Replies
    19
    Views
    4,956

    I did , I edited the code :)

    I did , I edited the code :)
  19. Thread: Stacks

    by Cmuppet
    Replies
    19
    Views
    4,956

    I've made a few changes, but now it's stuck in an...

    I've made a few changes, but now it's stuck in an endless printloop ?
  20. Thread: Stacks

    by Cmuppet
    Replies
    19
    Views
    4,956

    Thanks :) I did that , & now im only getting an...

    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 :)
  21. Replies
    14
    Views
    2,956

    The book is Data structures, a pseudocode aproach...

    The book is Data structures, a pseudocode aproach with C . So no, im at the right site.
  22. Thread: Stacks

    by Cmuppet
    Replies
    19
    Views
    4,956

    Stacks

    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...
  23. Replies
    14
    Views
    2,956

    Your feeling so superior aren't you ,because you...

    Your feeling so superior aren't you ,because you know C?
  24. Replies
    14
    Views
    2,956

    You don't understand , I don't have too write...

    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.
  25. Replies
    14
    Views
    2,956

    Sorry I don't have code , it's just a question ....

    Sorry I don't have code , it's just a question . Hope I didn't bother you too much :rolleyes:
Results 1 to 25 of 47
Page 1 of 2 1 2