Search:

Type: Posts; User: mconflict

Search: Search took 0.01 seconds.

  1. Replies
    1
    Views
    3,103

    Unit Testing Abstract Class

    Hello,

    I have an abstract class and I need to do unit Testing on it... The problem is I can't create object of that class to test it...like constructor and some methods.

    For the purpose of the...
  2. Replies
    1
    Views
    720

    Methods and attribute

    Hi,

    I wanted to know... I have an attribut for my construtor called :


    util::Date m_openDate;

    I do not need to access it anywhere else, only in my class.

    So I wanted to know... I don't...
  3. Thanks it worked I won't forget that last line...

    Thanks it worked I won't forget that last line for a while :P
  4. Constantly adding characters from an array to a string

    I have a 2d Array

    g[x][y]
    Each coordinate is a single character

    For each character found I need to put them in a one string

    I did something like this :

    for (x = 0; x < LARGEUR; x++)
  5. Thread: while(!feof)

    by mconflict
    Replies
    12
    Views
    8,122

    Where can I learn how to use a debugger, I'm...

    Where can I learn how to use a debugger, I'm using CodeBlock to do my programming
  6. Thread: while(!feof)

    by mconflict
    Replies
    12
    Views
    8,122

    The program is huge and it's written in french,...

    The program is huge and it's written in french, so I have to translate it manually when I post it here. I dunno what's else you need... I have some define for the OK like...

    #define OK 0
    #define...
  7. Thread: while(!feof)

    by mconflict
    Replies
    12
    Views
    8,122

    Ok well I think... I found the error but I don't...

    Ok well I think... I found the error but I don't understand it...

    After that little sample of code I have that :


    *NumbersOfWordsInList = i;
    *err = OK;


    Its Crashing on the...
  8. Thread: while(!feof)

    by mconflict
    Replies
    12
    Views
    8,122

    Well.. hmm I have main.c and it opens the file...

    Well.. hmm I have main.c and it opens the file and I call the function and after the function is done I close the file in the main.c... It is the right way?
  9. Thread: while(!feof)

    by mconflict
    Replies
    12
    Views
    8,122

    I tryed your solution and it still doesn't...

    I tryed your solution and it still doesn't work...
    Same crash... :(
  10. Thread: while(!feof)

    by mconflict
    Replies
    12
    Views
    8,122

    while(!feof)

    do
    {
    fscanf(file, "%s", wordlist[i]);
    printf("%s\n", wordlist[i]);
    i++;
    }while (!feof(file));


    Every time it reaches the end of the file its crashing...
  11. Replies
    3
    Views
    890

    I think i found it If I do words =...

    I think i found it

    If I do words = malloc(2000000*sizeof(words));

    It should work I guess

    words is defined as in the function

    int chargeWords(char *fileName, Word words[MAXNBWORDS], int...
  12. Replies
    3
    Views
    890

    I can deal with any number of words with any...

    I can deal with any number of words with any length, but I need to get all those words in the array
  13. Replies
    3
    Views
    890

    Beginner in C

    Hello,

    I have to get 200'000 words in an array.

    I use


    fscanf(ptr1,"%s", words[i]);

    I have one problem... It crashing because of the stack size.
Results 1 to 13 of 14