Search:

Type: Posts; User: DavX

Search: Search took 0.00 seconds.

  1. As a starter - have a think about what your...

    As a starter - have a think about what your thuemorsemorphism() function does to its zero-terminated string input
  2. Replies
    10
    Views
    3,755

    You should change the types that were char* to...

    You should change the types that were char* to const_char_p (especially longest which is going to be returned as the latter).
    The way you are iterating through the array is a bit odd. Why not do the...
  3. Replies
    10
    Views
    3,755

    First off, you need to make your specialisation...

    First off, you need to make your specialisation fit the form of the template.
    Since your template is:


    template<typename T>
    T maxn( T* a, int n );


    Your specialisation needs to simply...
  4. Take a close look at line 13733 of NumFile25k.txt...

    Take a close look at line 13733 of NumFile25k.txt - you have some non-numeric (possibly not visible in your text editor) characters.
    Beacuse your read loop was barfing over the input your eof()...
  5. Replies
    5
    Views
    1,676

    Along the same lines as grumpy's comment; line 60...

    Along the same lines as grumpy's comment; line 60 looks a bit suspect to me:


    p[p1_to_num_MJ(seq[j].substr(i,1))]++;


    Does seq[j].substr(i,1) ever equal "X"?, 'cos if it does then splitting...
  6. Replies
    9
    Views
    2,044

    The problem with the clean line is probably that...

    The problem with the clean line is probably that the make is very fussy about white space.
    make requires you to use tabs for indenting. I used spaces because that's all I could work out how to do on...
  7. Replies
    9
    Views
    2,044

    The quick fix would be to add an additional rule...

    The quick fix would be to add an additional rule to your makefile


    all: multigrid

    which will create a build target 'all' which depends on 'multigrid'.
    It is also conventional to have a...
  8. Replies
    3
    Views
    1,981

    The problem seems to be in your next() function:...

    The problem seems to be in your next() function: you should only clock the shift register by one position each time so the following should be correct:


    Uint next(void)
    {
    Uint feedback =...
Results 1 to 8 of 8