Also,
Quote:
Originally Posted by Deimos
if($hppercent) and or if($hpamount)
|
could be easily written. I just came back from a party so I dont have the energy to go through it and write it, but its easily possible.
__________________
namespace retval { template <class T> class ReturnValueGen { private: T x; public: ReturnValueGen() { x = 0; }; T& Generator() { return x; }; }; } int main() { retval::ReturnValueGen<int> retvalue; return retvalue.Generator(); }
C++ is wonderful.
|