Normal C++ editor
#1

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:
Код:
#include <iostream>

using namespace std;

void main( )
{
	cout << "aaa";
}
I shouldn't get errors, but I get these:
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 ==========

Thanks a lot.
Reply


Messages In This Thread
Normal C++ editor - by zgintasz - 10.09.2012, 12:07
Re: Normal C++ editor - by [MM]RoXoR[FS] - 10.09.2012, 12:20
Re: Normal C++ editor - by Extremo - 10.09.2012, 17:22
Re: Normal C++ editor - by playbox12 - 10.09.2012, 18:01
Respuesta: Normal C++ editor - by kirk - 10.09.2012, 18:06
Re: Normal C++ editor - by mamorunl - 10.09.2012, 21:09
Re: Normal C++ editor - by KingHual - 10.09.2012, 21:34
Re: Normal C++ editor - by zgintasz - 12.09.2012, 12:17
Re: Normal C++ editor - by Extremo - 12.09.2012, 22:28

Forum Jump:


Users browsing this thread: 1 Guest(s)