The C++Course provides a general introduction to programming in C++. It is based on A.B. Downey's book, How to Think Like a Computer Scientist. Click here for details. |
![]() |
Home ![]() ![]() |
||
See also: The Pitfalls of Templates, Templates | ||
![]() ![]() ![]() ![]() ![]() ![]() |
||
Templates and Classes{templates!in classes}
class pmatrix { ... ... ... }; If you want to declare a function that will return your typeparameter then replace the return type with your typeparameter name. template <class SOMETYPE>SOMETYPE printFunction();
|
||
Home ![]() ![]() |