Error(s) found: '1'

  • Unable to perform the query 'UPDATE cpp_code SET clickthru=clickthru+1 WHERE fid=10'. Table 'cpp_code' is read only.

  • C++ MADE EASY
    Code About Us Tutorial




       
     

    Home > myCode > Absolute Value (template)

    November 26, 2009 8:40 pm

       

    Absolute Value (template)


    Posted on: 2001-09-15 10:19:49
    Number of times viewed: 367

     
     
    template <class T>
    T absTemplate(T x)
    {
    	return x<0?-x:x;
    };

    Please Rate this Code:



     «12039» THINKQUEST TEAM C0111571 © 2001. All Rights Reserved.