10.09.2012, 12:07
Hi guys,
where can I get a normal C++ editor(Visual C++ 2010 Express), because mine is just crazy and I can't normally learn C++... Here is an example:
I shouldn't get errors, but I get these:
Thanks a lot.
where can I get a normal C++ editor(Visual C++ 2010 Express), because mine is just crazy and I can't normally learn C++... Here is an example:
Код:
#include <iostream> using namespace std; void main( ) { cout << "aaa"; }
Quote:
1>------ Build started: Project: remote_computer_controller_client, Configuration: Debug Win32 ------ 1> main.cpp 1>f:\program files\microsoft visual studio 10.0\vc\include\utility(99): error C2440: 'return' : cannot convert from 'std::ios_base::iostate' to 'int &&' 1> You cannot bind an lvalue to an rvalue reference 1> f:\program files\microsoft visual studio 10.0\vc\include\utility(117) : see reference to function template instantiation 'int &&std::_Move<_Ty&>(int)' being compiled 1> with 1> [ 1> _Ty=std::ios_base::iostate 1> ] 1> f:\program files\microsoft visual studio 10.0\vc\include\xiosbase(51 : see reference to function template instantiation 'void std:wap<std::ios_base::iostate>(_Ty &,_Ty &)' being compiled 1> with 1> [ 1> _Ty=std::ios_base::iostate 1> ] 1>f:\program files\microsoft visual studio 10.0\vc\include\utility(99): error C2440: 'return' : cannot convert from 'std:treamsize' to '__int64 &&' 1> You cannot bind an lvalue to an rvalue reference 1> f:\program files\microsoft visual studio 10.0\vc\include\utility(117) : see reference to function template instantiation '__int64 &&std::_Move<_Ty&>(__int64)' being compiled 1> with 1> [ 1> _Ty=std:treamsize 1> ] 1> f:\program files\microsoft visual studio 10.0\vc\include\xiosbase(521) : see reference to function template instantiation 'void std:wap<std:treamsize>(_Ty &,_Ty &)' being compiled 1> with 1> [ 1> _Ty=std:treamsize 1> ] 1>f:\program files\microsoft visual studio 10.0\vc\include\utility(99): error C2440: 'return' : cannot convert from 'std::ios_base::_Iosarray *' to 'std::ios_base::_Iosarray *&&' 1> You cannot bind an lvalue to an rvalue reference 1> f:\program files\microsoft visual studio 10.0\vc\include\utility(117) : see reference to function template instantiation 'std::ios_base::_Iosarray *&&std::_Move<_Ty&>(std::ios_base::_Iosarray)' being compiled 1> with 1> [ 1> _Ty=std::ios_base::_Iosarray * 1> ] 1> f:\program files\microsoft visual studio 10.0\vc\include\xiosbase(524) : see reference to function template instantiation 'void std:wap<std::ios_base::_Iosarray*>(_Ty &,_Ty &)' being compiled 1> with 1> [ 1> _Ty=std::ios_base::_Iosarray * 1> ] 1>f:\program files\microsoft visual studio 10.0\vc\include\utility(99): error C2440: 'return' : cannot convert from 'std::ios_base::_Fnarray *' to 'std::ios_base::_Fnarray *&&' 1> You cannot bind an lvalue to an rvalue reference 1> f:\program files\microsoft visual studio 10.0\vc\include\utility(117) : see reference to function template instantiation 'std::ios_base::_Fnarray *&&std::_Move<_Ty&>(std::ios_base::_Fnarray)' being compiled 1> with 1> [ 1> _Ty=std::ios_base::_Fnarray * 1> ] 1> f:\program files\microsoft visual studio 10.0\vc\include\xiosbase(525) : see reference to function template instantiation 'void std:wap<std::ios_base::_Fnarray*>(_Ty &,_Ty &)' being compiled 1> with 1> [ 1> _Ty=std::ios_base::_Fnarray * 1> ] 1>f:\program files\microsoft visual studio 10.0\vc\include\utility(99): error C2440: 'return' : cannot convert from 'std::locale *' to 'std::locale *&&' 1> You cannot bind an lvalue to an rvalue reference 1> f:\program files\microsoft visual studio 10.0\vc\include\utility(117) : see reference to function template instantiation 'std::locale *&&std::_Move<_Ty&>(std::locale)' being compiled 1> with 1> [ 1> _Ty=std::locale * 1> ] 1> f:\program files\microsoft visual studio 10.0\vc\include\xiosbase(526) : see reference to function template instantiation 'void std:wap<std::locale*>(_Ty &,_Ty &)' being compiled 1> with 1> [ 1> _Ty=std::locale * 1> ] ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ========== |