|
|
|
|
|
|
|
|
1>c:\claudia\datastructuresii\alvarado_lab8\main.cpp(117): error C2955: 'Student' : use of class template requires template argument list 1> c:\claudia\datastructuresii\alvarado_lab8\student.h(12) : see declaration of 'Student' 1>c:\claudia\datastructuresii\alvarado_lab8\main.cpp(124): error C2228: left of '.getID' must have class/struct/union 1> type is 'int' 1>c:\claudia\datastructuresii\alvarado_lab8\main.cpp(128): error C2228: left of '.getID' must have class/struct/union 1> type is 'int' 1>c:\claudia\datastructuresii\alvarado_lab8\main.cpp(138): error C2065: 'T' : undeclared identifier 1>c:\claudia\datastructuresii\alvarado_lab8\main.cpp(138): error C3203: 'Student' : unspecialized class template can't be used as a template argument for template parameter '_Ty', expected a real type 1>c:\claudia\datastructuresii\alvarado_lab8\main.cpp(138): error C2955: 'Student' : use of class template requires template argument list 1> c:\claudia\datastructuresii\alvarado_lab8\student.h(12) : see declaration of 'Student' 1>c:\claudia\datastructuresii\alvarado_lab8\main.cpp(150): error C2065: 'T' : undeclared identifier 1>c:\claudia\datastructuresii\alvarado_lab8\main.cpp(150): error C2065: 'T' : undeclared identifier 1>c:\claudia\datastructuresii\alvarado_lab8\main.cpp(152): error C2514: 'Student' : class has no constructors 1> c:\claudia\datastructuresii\alvarado_lab8\student.h(12) : see declaration of 'Student' 1>c:\claudia\datastructuresii\alvarado_lab8\main.cpp(153): error C2678: binary '=' : no operator found which takes a left-hand operand of type 'Student' (or there is no acceptable conversion) 1> c:\claudia\datastructuresii\alvarado_lab8\student.h(29): could be 'Student<T> &Student<T>::operator =(const Student<T> &)' 1> while trying to match the argument list '(Student, Student)' 1>c:\claudia\datastructuresii\alvarado_lab8\main.cpp(153): error C2582: 'operator =' function is unavailable in 'Student' 1>c:\claudia\datastructuresii\alvarado_lab8\main.cpp(154): error C2678: binary '=' : no operator found which takes a left-hand operand of type 'Student' (or there is no acceptable conversion) 1> c:\claudia\datastructuresii\alvarado_lab8\student.h(29): could be 'Student<T> &Student<T>::operator =(const Student<T> &)' 1> while trying to match the argument list '(Student, Student)' 1>c:\claudia\datastructuresii\alvarado_lab8\main.cpp(154): error C2582: 'operator =' function is unavailable in 'Student' ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ========== |
|
|
|
|
Student<float [10]> student1(1, "Jane Doe", janeDoeTests);
1>c:\claudia\datastructuresii\alvarado_lab8\main.cpp(50): error C2514: 'Student' : class has no constructors 1> c:\claudia\datastructuresii\alvarado_lab8\student.h(12) : see declaration of 'Student' 1>c:\claudia\datastructuresii\alvarado_lab8\main.cpp(51): error C2065: 'T' : undeclared identifier 1>c:\claudia\datastructuresii\alvarado_lab8\main.cpp(51): error C2514: 'Student' : class has no constructors 1> c:\claudia\datastructuresii\alvarado_lab8\student.h(12) : see declaration of 'Student' 1>c:\claudia\datastructuresii\alvarado_lab8\main.cpp(52): error C2065: 'T' : undeclared identifier 1>c:\claudia\datastructuresii\alvarado_lab8\main.cpp(52): error C2514: 'Student' : class has no constructors 1> c:\claudia\datastructuresii\alvarado_lab8\student.h(12) : see declaration of 'Student' 1>c:\claudia\datastructuresii\alvarado_lab8\main.cpp(53): error C2065: 'T' : undeclared identifier 1>c:\claudia\datastructuresii\alvarado_lab8\main.cpp(53): error C2514: 'Student' : class has no constructors 1> c:\claudia\datastructuresii\alvarado_lab8\student.h(12) : see declaration of 'Student' 1>c:\claudia\datastructuresii\alvarado_lab8\main.cpp(54): error C2065: 'T' : undeclared identifier 1>c:\claudia\datastructuresii\alvarado_lab8\main.cpp(54): error C2514: 'Student' : class has no constructors 1> c:\claudia\datastructuresii\alvarado_lab8\student.h(12) : see declaration of 'Student' 1>c:\claudia\datastructuresii\alvarado_lab8\main.cpp(55): error C2065: 'T' : undeclared identifier 1>c:\claudia\datastructuresii\alvarado_lab8\main.cpp(55): error C2514: 'Student' : class has no constructors 1> c:\claudia\datastructuresii\alvarado_lab8\student.h(12) : see declaration of 'Student' 1>c:\claudia\datastructuresii\alvarado_lab8\main.cpp(56): error C2065: 'T' : undeclared identifier 1>c:\claudia\datastructuresii\alvarado_lab8\main.cpp(56): error C2514: 'Student' : class has no constructors 1> c:\claudia\datastructuresii\alvarado_lab8\student.h(12) : see declaration of 'Student' 1>c:\claudia\datastructuresii\alvarado_lab8\main.cpp(57): error C2065: 'T' : undeclared identifier 1>c:\claudia\datastructuresii\alvarado_lab8\main.cpp(57): error C2514: 'Student' : class has no constructors 1> c:\claudia\datastructuresii\alvarado_lab8\student.h(12) : see declaration of 'Student' 1>c:\claudia\datastructuresii\alvarado_lab8\main.cpp(60): error C2065: 'T' : undeclared identifier 1>c:\claudia\datastructuresii\alvarado_lab8\main.cpp(60): error C3203: 'Student' : unspecialized class template can't be used as a template argument for template parameter '_Ty', expected a real type 1>c:\claudia\datastructuresii\alvarado_lab8\main.cpp(60): error C2955: 'Student' : use of class template requires template argument list 1> c:\claudia\datastructuresii\alvarado_lab8\student.h(12) : see declaration of 'Student' 1>c:\claudia\datastructuresii\alvarado_lab8\main.cpp(62): error C2664: 'void std::vector<_Ty>::push_back(_Ty &&)' : cannot convert parameter 1 from 'Student' to 'int &&' 1> with 1> [ 1> _Ty=int 1> ] 1> Reason: cannot convert from 'Student' to 'int' |