Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Need some help

Name: Anonymous 2010-05-02 19:17

poly::poly() {

 

};

poly::poly(const poly& l) {

  one = l.one;
};

poly::~poly() {


};


          template<class T>
line 19   poly::list<T> getone() {


};

template<class T>
line 25 poly::void setone(list<T> l) {


};

poly::poly operator +(poly rhs) {


}

poly::poly operator -(poly rhs) {

}

poly::poly operator =(poly rhs) {


}

std::ostream& operator <<(std::ostream&, poly){}
std::istream& operator <<(std::istream&, poly&){}

poly.cpp:19: error: expected constructor, destructor, or type conversion before '<' token
poly.cpp:25: error: expected unqualified-id before "void"
poly.cpp:39: error: `poly operator=(poly)' must be a nonstatic member function
poly.cpp:39: error: `poly operator=(poly)' must take exactly two arguments

Name: Anonymous 2010-05-02 21:33

>>16
stop using templates. they really are the gayest thing in the world.  just use void *

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List