Search:

Type: Posts; User: Ali3nSVK

Search: Search took 0.00 seconds.

  1. Replies
    14
    Views
    15,696

    int sum_row[n], sum_column[k]; Make sure...

    int
    sum_row[n], sum_column[k];


    Make sure you first initialise these arrays to zeros, since uninitialised, they contain random values and you use:



    sum_row[i]+=tab[i][j];...
  2. Replies
    9
    Views
    2,263

    @Salem That was exactly it! Thank you very much...

    @Salem
    That was exactly it! Thank you very much for your help, I'm not sure how I overlooked this so many times when debugging. :) Again, thank you.

    @failure67
    Thank you too for your time and...
  3. Replies
    9
    Views
    2,263

    Hmm yes I understand, there are some errors I...

    Hmm yes I understand, there are some errors I need to deal with, like the empty line, but for example:



    lst->strings[i][j] = L'\0';


    This line does not NULL the pointer. The whole inner...
  4. Replies
    9
    Views
    2,263

    I'm not sure if thats the issue since I've tried...

    I'm not sure if thats the issue since I've tried commenting out the cleanup and it still receives SIGSEGV. Here is the function:



    void cleanUp(TList *lst)
    {
    for (int i = 0; i <...
  5. Replies
    9
    Views
    2,263

    Yes, I will correct that part, thank you. But the...

    Yes, I will correct that part, thank you. But the main problem is it should not fail since I have lots of memory available. :(
  6. Replies
    9
    Views
    2,263

    Reallocating array of pointers.

    Hello, I'm having a slight problem with pointer arithmetics, specifically when trying to reallocate an array of pointers to wide character, previously allocated with malloc.

    I have a 2D array...
Results 1 to 6 of 6