Having trouble with homework assignment

I am having nothing but problems in my C++ course. I need some help with this assignment. Here's what I'm supposed to do:

1. Write a header file that defines 2 function templates. The first function template displays the contents of any array of primitives (int, double, float, etc.) on a line. The second template returns the count (how many) of entries in any array of numbers (ints, doubles, floats, unsigned ints, etc.) that are larger than the given value.

2. Write a test program that calls the function templates above on an array of ints and an array of doubles; you may just use arrays declared with initializers.


I really have no idea where to even start with this one. I'm really new to C++ only taking a C class before.

Any help would be greatly appreciated.
2 things:
http://www.cplusplus.com/forum/articles/1295/
and for your problem:
http://www.cplusplus.com/doc/tutorial/templates.html
Good luck, and remember, we will NEVER do it for you. Maybe hints, but we will not supply code.
oops...sorry didn't notice that the first time i read it. Thanks for the links
Yer welcome.
Topic archived. No new replies allowed.