1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
|
student.cpp: In function 'int main()':
student.cpp:12:13: error: ambiguous overload for 'operator>>' in 'std::cin >> s1
'
/usr/lib/gcc/i686-pc-cygwin/4.5.3/include/c++/istream:120:7: note: candidates ar
e: std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_Char
T, _Traits>::operator>>(std::basic_istream<_CharT, _Traits>::__istream_type& (*)
(std::basic_istream<_CharT, _Traits>::__istream_type&)) [with _CharT = char, _Tr
aits = std::char_traits<char>, std::basic_istream<_CharT, _Traits>::__istream_ty
pe = std::basic_istream<char>] <near match>
/usr/lib/gcc/i686-pc-cygwin/4.5.3/include/c++/istream:124:7: note:
std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_Char
T, _Traits>::operator>>(std::basic_istream<_CharT, _Traits>::__ios_type& (*)(std
::basic_istream<_CharT, _Traits>::__ios_type&)) [with _CharT = char, _Traits = s
td::char_traits<char>, std::basic_istream<_CharT, _Traits>::__istream_type = std
::basic_istream<char>, std::basic_istream<_CharT, _Traits>::__ios_type = std::ba
sic_ios<char>] <near match>
/usr/lib/gcc/i686-pc-cygwin/4.5.3/include/c++/istream:131:7: note:
std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_Char
T, _Traits>::operator>>(std::ios_base& (*)(std::ios_base&)) [with _CharT = char,
_Traits = std::char_traits<char>, std::basic_istream<_CharT, _Traits>::__istrea
m_type = std::basic_istream<char>] <near match>
student.cpp:14:26: error: no matching function for call to 'Student::Student(Stu
dent (&)())'
Student.h:12:2: note: candidates are: Student::Student(const Student&)
Student.h:11:2: note: Student::Student(std::string, const Name&,
GradeMap)
student.cpp:16:5: error: request for member 'display' in 's1', which is of non-c
lass type 'Student()'
|