C++ Assigment 8.5 (Due Nov. 19)
WRITE A TEMPLATE FUNCTION max5() THAT TAKES AS ITS ARGUMENTS AN ARRAY OF FIVE ITEMS OF
TYPE T AND RETURNS THE LARGEST ITEM IN THE ARRAY. (BECAUSE THE SIZE IS FIXED, IT CAN BE
HARD-CODED INTO THE LOOP INSTEAD OF BEING PASSED AS AN ARGUMENT.) TEST IT IN A PROGRAM
THAT USES THE FUNCTION WITH AN ARRAY OF FIVE int VALUES AND AN ARRAY OF FIVE double
VALUES.
C++ Assigment 8.5
Moderators: vinyard, KreepingMonkey
C++ Assigment 8.5
- vinyard
- Server Admin
- Posts: 301
- Joined: Fri Jun 15, 2007 7:43 pm
- CPU: Intel C2D E8200 [Stock]
- Video Card: EVGA GeForce 8800 GT 512MB SC
- Sound Card: Onboard
- Memory: Corsair Twin2x2048-6400Pro
- Motherboard: EVGA 680i AR1 p32
- Contact:
Re: C++ Assigment 8.5
Thanks Gark.
I'll post my code later on this week when I get around to coding this.
- vinyard.
-
skaterbasist
- C.S. Server Admin
- Posts: 91
- Joined: Fri Jul 13, 2007 11:43 pm
- Contact:
Re: C++ Assigment 8.5
Have you guys created your own objects & superclasses?
If not, goodluck
I don't plan on taking anymore programming classes. It's just not my thing. I think its a great skill to learn, but I can't see myself doing this for work.
M.E here I come
.
If not, goodluck
I don't plan on taking anymore programming classes. It's just not my thing. I think its a great skill to learn, but I can't see myself doing this for work.
M.E here I come
.

