i tried that one already and i m having this error:
stuffList.cc:19: error: no match for 'operator<<' in 'std::cout << put.Host::iterator::operator* [with Host = std::vector<stuff>]()'
.../ostream.hh:53: note: candidates are: std::basic_ostream<charT, traits>& std::basic_ostream<charT, traits>::operator<<(std::basic_ostream<charT, traits>& (*)(std::basic_ostream<charT, traits>&)) [with charT = char, traits = std::char_traits<char>]
.../ostream.hh:55: note: std::basic_ostream<charT, traits>& std::basic_ostream<charT, traits>::operator<<(std::basic_ios<charT, traits>& (*)(std::basic_ios<charT, traits>&)) [with charT = char, traits = std::char_traits<char>]
.../ostream.hh:57: note: std::basic_ostream<charT, traits>& std::basic_ostream<charT, traits>::operator<<(std::ios_base& (*)(std::ios_base&)) [with charT = char, traits = std::char_traits<char>]
.../ostream.hh:58: note: std::basic_ostream<charT, traits>& std::basic_ostream<charT, traits>::operator<<(bool) [with charT = char, traits = std::char_traits<char>]
.../ostream.hh:59: note: std::basic_ostream<charT, traits>& std::basic_ostream<charT, traits>::operator<<(short int) [with charT = char, traits = std::char_traits<char>]
.../ostream.hh:60: note: std::basic_ostream<charT, traits>& std::basic_ostream<charT, traits>::operator<<(short unsigned int) [with charT = char, traits = std::char_traits<char>]
.../ostream.hh:61: note: std::basic_ostream<charT, traits>& std::basic_ostream<charT, traits>::operator<<(int) [with charT = char, traits = std::char_traits<char>]
.../ostream.hh:62: note: std::basic_ostream<charT, traits>& std::basic_ostream<charT, traits>::operator<<(unsigned int) [with charT = char, traits = std::char_traits<char>]
.../ostream.hh:63: note: std::basic_ostream<charT, traits>& std::basic_ostream<charT, traits>::operator<<(long int) [with charT = char, traits = std::char_traits<char>]
.../ostream.hh:64: note: std::basic_ostream<charT, traits>& std::basic_ostream<charT, traits>::operator<<(long unsigned int) [with charT = char, traits = std::char_traits<char>]
.../ostream.hh:65: note: std::basic_ostream<charT, traits>& std::basic_ostream<charT, traits>::operator<<(float) [with charT = char, traits = std::char_traits<char>]
.../ostream.hh:66: note: std::basic_ostream<charT, traits>& std::basic_ostream<charT, traits>::operator<<(double) [with charT = char, traits = std::char_traits<char>]
.../ostream.hh:67: note: std::basic_ostream<charT, traits>& std::basic_ostream<charT, traits>::operator<<(long double) [with charT = char, traits = std::char_traits<char>]
.../ostream.hh:68: note: std::basic_ostream<charT, traits>& std::basic_ostream<charT, traits>::operator<<(const void*) [with charT = char, traits = std::char_traits<char>]
.../ostream.hh:70: note: std::basic_ostream<charT, traits>& std::basic_ostream<charT, traits>::operator<<(std::basic_streambuf<charT, traits>*) [with charT = char, traits = std::char_traits<char>]
the line 19 is line 3 on the code below :
1 2 3 4
|
for (put = elemantList.begin(); put!= elementList.end(); ++put)
{
cout << *put<< endl;
}
|
i m so stuck please help