| | |
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 |
api array based beginner binary c++ c/c++ calculator char char* class classes code compile compiler console conversion count delete deploy desktop directshow dll download dynamic dynamiccharacterarray email encryption error file forms fstream function functions game givemetehcodez google graph gui homeworkhelp homeworkhelper iamthwee ifstream input int integer java lib linkedlist linker linux list loop looping loops map math matrix memory news numbertoword output parameter pointer problem program programming project proxy python random read recursion recursive reference return rpg sorting string strings struct temperature template templates test text text-file tree unix url variable vector video visual visualstudio win32 windows winsock wordfrequency wxwidgets





