Also.... you missed the point of perl -MIIO::Scalar -e "print 'Installed'". It is used to test if you have IO::Scalar, in which you didnt. Since you dont, you would run perl -MCPAN -e shell and then Install IO::Scalar.
__________________
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.
|