Hello, I'm doing a programme for vector calculation. I want to do it with template and classe. All operations work accept beside calculation vector length. Can anybody help me? I don't know what is wrong and how should it be written. Here is an minimum example.
Other operation (substraction, cross product) are defined in a similar way as +. Template <class t> class vector... is more complex (it contain more function), but with this minimum working example working correct I think that I will manage to modify my programme.
Thanks for Your help.