Search:

Type: Posts; User: laserlight

Search: Search took 0.15 seconds.

  1. Replies
    15
    Views
    1,391

    I know what are triangular matrices, hence I...

    I know what are triangular matrices, hence I asked if those functions should return bool, i.e., to return true if the current matrix is an upper (or lower) triangular matrix.

    If they are supposed...
  2. Replies
    15
    Views
    1,391

    This is wrong: #include #include...

    This is wrong:

    #include <iostream>
    #include <vector>


    using namespace std;


    #ifndef MATRIX_H
  3. Replies
    15
    Views
    1,391

    You cannot, but I can, yet I won't ;) You...

    You cannot, but I can, yet I won't ;)

    You probably just made a mistake somewhere.
  4. Replies
    15
    Views
    1,391

    Well, why did you not just write the body of the...

    Well, why did you not just write the body of the function template instead of repeating the return type, name, etc? Obviously, the reason is that if you did that, the compiler would have no way of...
  5. Replies
    15
    Views
    1,391

    You are, after all, declaring/defining a function...

    You are, after all, declaring/defining a function template.
  6. Replies
    15
    Views
    1,391

    Notice that the forward declaration and the...

    Notice that the forward declaration and the definition does not match.

    If you only want certain types, perhaps you should overload instead.
Results 1 to 6 of 6