C++

Please support our C++ advertiser: Intel Parallel Studio Home
Reply

Join Date: May 2007
Posts: 21
Reputation: faisaly is an unknown quantity at this point 
Solved Threads: 0
faisaly faisaly is offline Offline
Newbie Poster

C++

 
0
  #1
Jul 9th, 2008
Dear All,
Kindly help me regarding this questoin of C++(OOP).

Write a template function that returns the average of all the elements of an array. The
arguments to the function should be the array name and the size of the array (type int). In
main(), exercise the function with arrays of type int, long, double, and char.
Reply With Quote Quick reply to this message  
Join Date: Mar 2008
Posts: 41
Reputation: RenjithVR is an unknown quantity at this point 
Solved Threads: 7
RenjithVR RenjithVR is offline Offline
Light Poster

Re: C++

 
0
  #2
Jul 9th, 2008
Refer the following link and try to do it by yourself
1, http://www.cplusplus.com/doc/tutorial/templates.html
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Other Threads in the C++ Forum
Thread Tools Search this Thread



Tag cloud for C++
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC