Search:

Type: Posts; User: penance

Search: Search took 0.00 seconds.

  1. Replies
    7
    Views
    2,388

    Altered the code thanks to assistance on another...

    Altered the code thanks to assistance on another forum. Still doesn't work but it's one step closer.

    Changed the code again. Problem still exists but it's starting to clear away.


    #include...
  2. Replies
    7
    Views
    2,388

    Thanks. That didn't solve the problem but that...

    Thanks. That didn't solve the problem but that would've been a problem down the road.
  3. Replies
    7
    Views
    2,388

    On the subject of result, I'm only going by what...

    On the subject of result, I'm only going by what my compiler told me to do and the syntax that I've read in my notes. Result is supposed to be pointing to the result stack that I declared at the...
  4. Replies
    7
    Views
    2,388

    Well that's interesting. How'd I miss that?

    Well that's interesting. How'd I miss that?
  5. Replies
    7
    Views
    2,388

    Help With Stacks

    Hello, I am creating a program to add and multiply large numbers using stacks. I have been working on the program all day and I believe I am on the verge of completing it, but right now the addition...
  6. Replies
    4
    Views
    17,954

    Now see, my problem was that I didn't think to...

    Now see, my problem was that I didn't think to put all that at the beginning instead of the end. That makes a lot more sense. Brian, you're a lifesaver. Thank you so much for your assistance.
  7. Replies
    4
    Views
    17,954

    Well, I just solved my second problem. Turns out...

    Well, I just solved my second problem. Turns out I never supplied a case for if a node didn't have a left or right branch, which is why it didn't work when I tried to delete all the nodes. I was...
  8. Replies
    4
    Views
    17,954

    Binary Search Tree

    Hello, I am currently working on a binary search tree that acts as a phone book. I am nearly completed with it and all functions seem to work properly except in two cases:

    An error message will...
  9. Replies
    9
    Views
    2,260

    Oh holy ........, I figured it out. I never set...

    Oh holy ........, I figured it out. I never set each node's reference value equal to anything. I changed the addnode function so that it no longer takes in a reference value, it assigns the value to...
  10. Replies
    9
    Views
    2,260

    Well, what you said really helped because I...

    Well, what you said really helped because I realized my calcindex function was totally wrong, as the formula called for all letters to be multiplied by 3, all numbers by 5, both totals added...
  11. Replies
    9
    Views
    2,260

    I ran the debugger and it says "Unhandled...

    I ran the debugger and it says "Unhandled exception in program.exe: 0xC0000005: Access Violation."

    I don't know what that means.

    And then it points to this line:

    strarray[index] =...
  12. Replies
    9
    Views
    2,260

    I wasn't asking for all my problems to be solved,...

    I wasn't asking for all my problems to be solved, and I'm sorry if I sounded that way. I am trying to solve it on my end. I'm just asking for help, which doesn't necessarily ask for a solution, just...
  13. Replies
    9
    Views
    2,260

    Actually, yeah, Prelude, I have been weaned on...

    Actually, yeah, Prelude, I have been weaned on Java so to speak. I'm taking classes in both languages at the same time (out of necessity, not desire) so I guess I've gotten a little scatterbrained.
    ...
  14. Replies
    9
    Views
    2,260

    Hash Table Problem.

    Hey, it's me again. Sorry to be such a bother but this should be the last time for a little while, I assure you.

    The program I've been working on the past week or so is a hash table, using an...
  15. Replies
    5
    Views
    1,253

    Wait, does that work for when numbers are part of...

    Wait, does that work for when numbers are part of the string too, or am I going to have to do something extra for that?
  16. Replies
    5
    Views
    1,253

    What exactly does the "string[i] - 'A' + 1 do? ...

    What exactly does the "string[i] - 'A' + 1 do?

    EDIT: Oh never mind, ASCII code. Figured it out. Thanks, that is easy. Now to go bash my head into a wall for not figuring that out on my own. I am...
  17. Replies
    5
    Views
    1,253

    Getting Value Of A String

    This is probably so easy I could slap myself, but I can't figure out how to do this and it is necessary for a larger program I am building. Assuming that each letter in the alphabet is represented by...
  18. Replies
    4
    Views
    1,917

    Never mind, I solved the problem myself. It...

    Never mind, I solved the problem myself. It turned out that the solution was to do this:


    #include <stdio.h>

    int NumberofPartitions (int *set, int size, int result, int parts);

    int main ()...
  19. Replies
    4
    Views
    1,917

    So, anyone want to take a shot at it? I'm still...

    So, anyone want to take a shot at it? I'm still trying variations. Any help would be appreciated.
  20. Replies
    4
    Views
    1,917

    Well, I'm not sure if it needs a return statement...

    Well, I'm not sure if it needs a return statement in the other cases. See NumberOfPartitions is supposed to be a recursive function.

    For example, let's say the array given by the user is 1, 3, 4,...
  21. Replies
    4
    Views
    1,917

    Recursive Problem.

    Hello. I am trying to write a recursive program that will check partitions of an array to see if they add up to a certain number. A person gives the target number, the length of the array, and the...
Results 1 to 21 of 21