Re: temlate class

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Sep 14, 2004 at 11:50:49AM +0300, learning c++ wrote:
> Hi,
> I comp?led a template class. I hope it can apply to int and double. Also, I 
> hope to use vector class in my code. But it does not work.
> Please help me.

> T vector1<T>::vector_sum(vector(T) &vec){

Again, a C++ programming question -- off topic here.

And you should at least show that you've taken some effort to
solve the problem yourself before posting a question to a forum. 

You not even got the syntax right??? 

It should read "vector<T>" instead of "vector(T)".

Please get a book and read it through. Stop bugging people
on this mailing list.

(I haven't taken my sedatives today...)

--
Claudio 

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux