| | |
C++
Please support our C++ advertiser: Intel Parallel Studio Home
![]() |
•
•
Join Date: May 2007
Posts: 21
Reputation:
Solved Threads: 0
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.
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.
•
•
Join Date: Mar 2008
Posts: 41
Reputation:
Solved Threads: 7
Refer the following link and try to do it by yourself
1, http://www.cplusplus.com/doc/tutorial/templates.html
1, http://www.cplusplus.com/doc/tutorial/templates.html
![]() |
Other Threads in the C++ Forum
- Previous Thread: File writing help in vc++
- Next Thread: regarding Audio checking??
| Thread Tools | Search this Thread |
Tag cloud for C++
6 add api array arrays beginner binary bitmap c++ c/c++ calculator char class classes code compile compiler console conversion convert count data delete desktop directshow dll encryption error file forms fstream function functions game getline givemetehcodez google graph homeworkhelper iamthwee ifstream input int integer java lazy lib linkedlist linux loop looping loops map math matrix memory microsoft multidimensional newbie news node number output parameter pointer problem program programming project proxy python random read recursion recursive reference return string strings struct studio system template templates test text tree unix url variable vector video visual visualstudio win32 windows winsock word wordfrequency wxwidgets





