Search:

Type: Posts; User: DavX

Search: Search took 0.01 seconds.

  1. Replies
    10
    Views
    3,761

    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...
  2. Replies
    10
    Views
    3,761

    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...
Results 1 to 2 of 2