wrap.cc - return*this template<typename T> T...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
#include <iostream> #include "Wrap.h" template<typename T> Wrap<T>::Wrap() { value = 0; } template<typename T> Wrap<T>::Wrap(T v) { this->value = v; } template<typename T> this->value = w.value; } template<typename T> Wrap<T>::~Wrap() { // nothing } template<typename T> this->value = w.value;
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: return *this; } template<typename T> T Wrap<T>::get() const { return value; } template<typename T> void Wrap<T>::set(T v) { value = v; } template<typename T> void Wrap<T>::display(ostream& os) const { os << value << endl; } //ostream& operator<<(ostream& os, const Wrap& w) { // w.display(os); // return os; //}...
View Full Document

This note was uploaded on 04/19/2008 for the course CS 265 taught by Professor Daniele.stevenson during the Spring '08 term at Wisc Eau Claire.

Ask a homework question - tutors are online