Search:

Type: Posts; User: Clayton Cuteri

Search: Search took 0.01 seconds.

  1. Replies
    5
    Views
    1,188

    wow...okay I see what you are talking about....

    wow...okay I see what you are talking about. Thanks, now is head still dynamically declared? even though I set it equal to NULL after i malloced it?
  2. Replies
    5
    Views
    1,188

    Alright, I changed the currWord line, that makes...

    Alright, I changed the currWord line, that makes sense but the first part doesnt matter, I assign a word to it when i run
    head = insert(currWord, head); if head == NULL
  3. Replies
    5
    Views
    1,188

    No Stack Error

    This is the first time I have encountered a "no stack." error giving me a seg fault. Anyhow, I am scanning words into a binary search tree and it is giving me a seg fault. I cannot figure out which...
  4. Replies
    6
    Views
    1,770

    ya i caught that problem today, however, its now...

    ya i caught that problem today, however, its now giving me the same problem with a different line


    #include <unistd.h>
    #include <stdio.h>
    #include <string.h>
    #include <stdlib.h>

    typedef...
  5. Replies
    6
    Views
    1,770

    changed those 4 lines to ...

    changed those 4 lines to


    freeLinkedList(head);

    still getting the same error :(
  6. Replies
    6
    Views
    1,770

    cant believe i over looked that...THANK YOU!

    cant believe i over looked that...THANK YOU!
  7. Replies
    6
    Views
    1,770

    EXC_BAD_ACCESS error help

    Theres a lot of code here sorry but idt you need to look at it all.



    #include <unistd.h>
    #include <stdio.h>
    #include <string.h>
    #include <stdlib.h>

    typedef struct BigInt{
  8. Replies
    6
    Views
    1,137

    here is my output (gdb) r Starting program:...

    here is my output

    (gdb) r
    Starting program: /Users/claytoncuteri/Desktop/bigint
    Reading symbols for shared libraries +............................. done

    Program received signal...
  9. Replies
    6
    Views
    1,137

    thanks i need to look into it a bit more but this...

    thanks i need to look into it a bit more but this reply has been helpful
  10. Replies
    6
    Views
    1,137

    it is actually occurring in line 9, sorry

    it is actually occurring in line 9, sorry
  11. Replies
    6
    Views
    1,137

    Segfault

    I am receiving a Segmentation Fault on line 11. There might be something wrong with the way i am compiling it because this is the first time that i have used terminal. At any rate, the segfault is in...
  12. i have narrowed it down to it having something to...

    i have narrowed it down to it having something to do with str[first] and str[second] being assigned. i have never been more confused about simpler code
  13. in the new code i posted above i got k to...

    in the new code i posted above i got k to increase, however flip is not wanting to flip the letters, trying to figure it out but no luck so far
  14. no i was trying to get all permutations of cat...

    no i was trying to get all permutations of cat...
  15. i fixed it by changing recursive(str, k++):...

    i fixed it by changing


    recursive(str, k++):

    to


    k++;
    recursive(str, k);
  16. char* flip(char* str, int first, int second){ ...

    char* flip(char* str, int first, int second){
    char temp = str[first];
    str[first] = str[second];
    str[second] = temp;
    return str;
    }


    void recursive(char* str, int k){
    int...
  17. and the last one doesnt work either, crashes

    and the last one doesnt work either, crashes
  18. the const code doesnt even compile

    the const code doesnt even compile
  19. trying to find the permutation of a word

    this is the code i have and it crashes, cant figure out why, please help


    char * flip(char* str, int first, int second){
    char temp = str[first];
    str[first] = str[second];
    ...
  20. okay i fixed it and now it is just crashing, any...

    okay i fixed it and now it is just crashing, any reason known?


    #include <stdio.h>
    #include <stdlib.h>
    #include <math.h>
    #include <string.h>


    struct integer{
  21. the lines appear to be off, sorry for this

    the lines appear to be off, sorry for this
  22. getting a "invalid operands to binary"

    I am getting this error in lines that involve "ch[_]" in lines 27, 28, 29, 33, 42, 43, 44, and 48, heres the code:


    #include <stdio.h>
    #include <stdlib.h>
    #include <math.h>
    #include <string.h>...
  23. my input reads "12345" and i want to get it to be...

    my input reads "12345" and i want to get it to be "54321" (for multiplication reasons). i changed the code to what it looks like in line 11, except for the
    (int) however this did not help...
  24. struct integer looks like this: struct...

    struct integer looks like this:


    struct integer{
    int* digits;
    int size;
    };
  25. Converting a char array into an int array

    I am writing code to multiply two int arrays and in my one function i am trying to convert the char array into an int array. I have tested many parts however i can not find the problem. any help or...
Results 1 to 25 of 25