Hello you guys...trying out new programs using the template class T...I'm really new at this sort of things and would be thankful if anyone could help me...Here is my program:I'm trying to enter data and read into array then print out all the grades in descending order also printing out the highest, lowest, average and the number of grades that are below average....this is what I have:
I'm trying to enter data and read into array then print out all the grades in descending order also printing out the highest, lowest, average and the number of grades that are below average.......this is what I get:
.\grades.cpp(32) : error C2734: 'a' : const object must be initialized if not extern
.\grades.cpp(33) : error C2734: 'b' : const object must be initialized if not extern
.\grades.cpp(34) : error C2734: 'c' : const object must be initialized if not extern
.\grades.cpp(47) : error C2109: subscript requires array or pointer type
.\grades.cpp(55) : error C2109: subscript requires array or pointer type
.\grades.cpp(55) : error C2109: subscript requires array or pointer type
.\grades.cpp(66) : error C2109: subscript requires array or pointer type
.\grades.cpp(66) : error C2109: subscript requires array or pointer type
.\grades.cpp(78) : error C2109: subscript requires array or pointer type
.\grades.cpp(78) : error C2109: subscript requires array or pointer type
So can you tell me or show me how I can get this program to work??? It's been driving me crazy now for days...I must know if it can work or not...Thank you