Created
February 5, 2012 04:09
-
-
Save mhseiden/1742608 to your computer and use it in GitHub Desktop.
Very Basic Number Template
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
template <typename T> class Number | |
{ | |
public: | |
Number() | |
: data(0) | |
{ } | |
Number(const T& val) | |
: data(val) | |
{ } | |
T getNumber() | |
{ return data; } | |
private: | |
T data; | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment