ierofant
построил твой в visual studio 2010 выдал ошибку:
error C2679: бинарный "<<": не найден оператор, принимающий правый операнд типа "overloaded-function" (или приемлемое преобразование отсутствует)
1> c:\program files\microsoft visual studio 10.0\vc\include\ostream(679): может быть "std::basic_ostream<_Elem,_Traits> &std:
perator <<<char,std::char_traits<char>>(std::basic_ostream<_Elem,_Traits> &,const char *)" [найдено при поиске с зависимостью от аргументов]
1> with
1> [
1> _Elem=char,
1> _Traits=std::char_traits<char>
1> ]
1> c:\program files\microsoft visual studio 10.0\vc\include\ostream(726): или "std::basic_ostream<_Elem,_Traits> &std:
perator <<<char,std::char_traits<char>>(std::basic_ostream<_Elem,_Traits> &,char)" [найдено при поиске с зависимостью от аргументов]
1> with
1> [
1> _Elem=char,
1> _Traits=std::char_traits<char>
1> ]
1> c:\program files\microsoft visual studio 10.0\vc\include\ostream(764): или "std::basic_ostream<_Elem,_Traits> &std:
perator <<<std::char_traits<char>>(std::basic_ostream<_Elem,_Traits> &,const char *)" [найдено при поиске с зависимостью от аргументов]
1> with
1> [
1> _Elem=char,
1> _Traits=std::char_traits<char>
1> ]
1> c:\program files\microsoft visual studio 10.0\vc\include\ostream(811): или "std::basic_ostream<_Elem,_Traits> &std:
perator <<<std::char_traits<char>>(std::basic_ostream<_Elem,_Traits> &,char)" [найдено при поиске с зависимостью от аргументов]
1> with
1> [
1> _Elem=char,
1> _Traits=std::char_traits<char>
1> ]
1> c:\program files\microsoft visual studio 10.0\vc\include\ostream(937): или "std::basic_ostream<_Elem,_Traits> &std:
perator <<<std::char_traits<char>>(std::basic_ostream<_Elem,_Traits> &,const signed char *)" [найдено при поиске с зависимостью от аргументов]
1> with
1> [
1> _Elem=char,
1> _Traits=std::char_traits<char>
1> ]
1> c:\program files\microsoft visual studio 10.0\vc\include\ostream(944): или "std::basic_ostream<_Elem,_Traits> &std:
perator <<<std::char_traits<char>>(std::basic_ostream<_Elem,_Traits> &,signed char)" [найдено при поиске с зависимостью от аргументов]
1> with
1> [
1> _Elem=char,
1> _Traits=std::char_traits<char>
1> ]
1> c:\program files\microsoft visual studio 10.0\vc\include\ostream(951): или "std::basic_ostream<_Elem,_Traits> &std:
perator <<<std::char_traits<char>>(std::basic_ostream<_Elem,_Traits> &,const unsigned char *)" [найдено при поиске с зависимостью от аргументов]
1> with
1> [
1> _Elem=char,
1> _Traits=std::char_traits<char>
1> ]
1> c:\program files\microsoft visual studio 10.0\vc\include\ostream(958): или "std::basic_ostream<_Elem,_Traits> &std:
perator <<<std::char_traits<char>>(std::basic_ostream<_Elem,_Traits> &,unsigned char)" [найдено при поиске с зависимостью от аргументов]
1> with
1> [
1> _Elem=char,
1> _Traits=std::char_traits<char>
1> ]
1> c:\program files\microsoft visual studio 10.0\vc\include\ostream(1085): или "std::basic_ostream<_Elem,_Traits> &std:
perator <<<char,std::char_traits<char>>(std::basic_ostream<_Elem,_Traits> &,const std::error_code &)" [найдено при поиске с зависимостью от аргументов]
1> with
1> [
1> _Elem=char,
1> _Traits=std::char_traits<char>
1> ]
1> c:\program files\microsoft visual studio 10.0\vc\include\ostream(186): или "std::basic_ostream<_Elem,_Traits> &std::basic_ostream<_Elem,_Traits>:
perator <<(std::basic_ostream<_Elem,_Traits> &(__cdecl *)(std::basic_ostream<_Elem,_Traits> &))"
1> with
1> [
1> _Elem=char,
1> _Traits=std::char_traits<char>
1> ]
1> c:\program files\microsoft visual studio 10.0\vc\include\ostream(192): или "std::basic_ostream<_Elem,_Traits> &std::basic_ostream<_Elem,_Traits>:
perator <<(std::basic_ios<_Elem,_Traits> &(__cdecl *)(std::basic_ios<_Elem,_Traits> &))"
1> with
1> [
1> _Elem=char,
1> _Traits=std::char_traits<char>
1> ]
1> c:\program files\microsoft visual studio 10.0\vc\include\ostream(199): или "std::basic_ostream<_Elem,_Traits> &std::basic_ostream<_Elem,_Traits>:
perator <<(std::ios_base &(__cdecl *)(std::ios_base &))"
1> with
1> [
1> _Elem=char,
1> _Traits=std::char_traits<char>
1> ]
1> c:\program files\microsoft visual studio 10.0\vc\include\ostream(206): или "std::basic_ostream<_Elem,_Traits> &std::basic_ostream<_Elem,_Traits>:
perator <<(std::_Bool)"
1> with
1> [
1> _Elem=char,
1> _Traits=std::char_traits<char>
1> ]
1> c:\program files\microsoft visual studio 10.0\vc\include\ostream(226): или "std::basic_ostream<_Elem,_Traits> &std::basic_ostream<_Elem,_Traits>:
perator <<(short)"
1> with
1> [
1> _Elem=char,
1> _Traits=std::char_traits<char>
1> ]
1> c:\program files\microsoft visual studio 10.0\vc\include\ostream(260): или "std::basic_ostream<_Elem,_Traits> &std::basic_ostream<_Elem,_Traits>:
perator <<(unsigned short)"
1> with
1> [
1> _Elem=char,
1> _Traits=std::char_traits<char>
1> ]
1> c:\program files\microsoft visual studio 10.0\vc\include\ostream(280): или "std::basic_ostream<_Elem,_Traits> &std::basic_ostream<_Elem,_Traits>:
perator <<(int)"
1> with
1> [
1> _Elem=char,
1> _Traits=std::char_traits<char>
1> ]
1> c:\program files\microsoft visual studio 10.0\vc\include\ostream(305): или "std::basic_ostream<_Elem,_Traits> &std::basic_ostream<_Elem,_Traits>:
perator <<(unsigned int)"
1> with
1> [
1> _Elem=char,
1> _Traits=std::char_traits<char>
1> ]
1> c:\program files\microsoft visual studio 10.0\vc\include\ostream(325): или "std::basic_ostream<_Elem,_Traits> &std::basic_ostream<_Elem,_Traits>:
perator <<(long)"
1> with
1> [
1> _Elem=char,
1> _Traits=std::char_traits<char>
1> ]
1> c:\program files\microsoft visual studio 10.0\vc\include\ostream(345): или "std::basic_ostream<_Elem,_Traits> &std::basic_ostream<_Elem,_Traits>:
perator <<(unsigned long)"
1> with
1> [
1> _Elem=char,
1> _Traits=std::char_traits<char>
1> ]
1> c:\program files\microsoft visual studio 10.0\vc\include\ostream(366): или "std::basic_ostream<_Elem,_Traits> &std::basic_ostream<_Elem,_Traits>:
perator <<(__int64)"
1> with
1> [
1> _Elem=char,
1> _Traits=std::char_traits<char>
1> ]
1> c:\program files\microsoft visual studio 10.0\vc\include\ostream(386): или "std::basic_ostream<_Elem,_Traits> &std::basic_ostream<_Elem,_Traits>:
perator <<(unsigned __int64)"
1> with
1> [
1> _Elem=char,
1> _Traits=std::char_traits<char>
1> ]
1> c:\program files\microsoft visual studio 10.0\vc\include\ostream(407): или "std::basic_ostream<_Elem,_Traits> &std::basic_ostream<_Elem,_Traits>:
perator <<(float)"
1> with
1> [
1> _Elem=char,
1> _Traits=std::char_traits<char>
1> ]
1> c:\program files\microsoft visual studio 10.0\vc\include\ostream(427): или "std::basic_ostream<_Elem,_Traits> &std::basic_ostream<_Elem,_Traits>:
perator <<(double)"
1> with
1> [
1> _Elem=char,
1> _Traits=std::char_traits<char>
1> ]
1> c:\program files\microsoft visual studio 10.0\vc\include\ostream(447): или "std::basic_ostream<_Elem,_Traits> &std::basic_ostream<_Elem,_Traits>:
perator <<(long double)"
1> with
1> [
1> _Elem=char,
1> _Traits=std::char_traits<char>
1> ]
1> c:\program files\microsoft visual studio 10.0\vc\include\ostream(467): или "std::basic_ostream<_Elem,_Traits> &std::basic_ostream<_Elem,_Traits>:
perator <<(const void *)"
1> with
1> [
1> _Elem=char,
1> _Traits=std::char_traits<char>
1> ]
1> c:\program files\microsoft visual studio 10.0\vc\include\ostream(487): или "std::basic_ostream<_Elem,_Traits> &std::basic_ostream<_Elem,_Traits>:
perator <<(std::basic_streambuf<_Elem,_Traits> *)"
1> with
1> [
1> _Elem=char,
1> _Traits=std::char_traits<char>
1> ]
1> при попытке сопоставить список аргументов "(std::basic_ostream<_Elem,_Traits>, overloaded-function)"
1> with
1> [
1> _Elem=char,
1> _Traits=std::char_traits<char>
1> ]