943,688 Members | Top Members by Rank

Ad:
  • C++ Discussion Thread
  • Unsolved
  • Views: 469
  • C++ RSS
Jul 9th, 2008
0

C++

Expand Post »
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.
Reputation Points: 10
Solved Threads: 0
Newbie Poster
faisaly is offline Offline
21 posts
since May 2007
Jul 9th, 2008
0

Re: C++

Refer the following link and try to do it by yourself
1, http://www.cplusplus.com/doc/tutorial/templates.html
Reputation Points: 12
Solved Threads: 7
Light Poster
RenjithVR is offline Offline
41 posts
since Mar 2008

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in C++ Forum Timeline: File writing help in vc++
Next Thread in C++ Forum Timeline: regarding Audio checking??





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC