0

Hey!

i've been trying to create a header file using dev C++ but i'm stuck with sum errors. Can anyone help me out in this?

```
#ifndef SUM_H
#define SUM_H
template <class T>
class add
{
private:
const T a,b;
public:
T sum(T,T);
void displaysum();
};
template <class T>
T add::sum(T x,T y)
{
a=x;b=y;
return a+b;
}
template <class T>
void add::displaysum()
{
cout<<endl<<"sum is "<<right<<a+b;
}
#endif
```

I get an error on compiling..

```
[Error] expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
```