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
#2

I think you should use Code Blocks
:http://www.codeblocks.org/
Reply
#3

Here ya go:

http://www.microsoft.com/visualstudi...al-cpp-express

I use it as well, even though I have a license for the whole program and not just the free express version =). Works like a charm.
Reply
#4

If you're a student you could ask your school about MSDN (academic license). Which basically gives you access to almost all Microsoft software free of charge.
Reply
#5

Far as i remember the main() function must return something!, try it this way, compile it and it shouold work fine.
Код:
#include <iostream>

using namespace std;

int main( )
{
	cout << "aaa" << endl;
        return 0;
}
Reply
#6

After looking up the main method, I read that the main method has more parameters.

Did you also update all libraries? because it will not be different in a different editor.
Reply
#7

Quote:
Originally Posted by mamorunl
Посмотреть сообщение
After looking up the main method, I read that the main method has more parameters.

Did you also update all libraries? because it will not be different in a different editor.
The main method doesn't nessesairly have to have parameters. The argc and argv params are optional, used for command line parameters.
Reply
#8

Quote:
Originally Posted by [MM]RoXoR[FS]
Посмотреть сообщение
I think you should use Code Blocks
:http://www.codeblocks.org/
Quote:
Originally Posted by Extremo
Посмотреть сообщение
Here ya go:

http://www.microsoft.com/visualstudi...al-cpp-express

I use it as well, even though I have a license for the whole program and not just the free express version =). Works like a charm.
I'll try, thanks. By the way, will it be legal if I release paid application with this free version?

Quote:
Originally Posted by mamorunl
Посмотреть сообщение
After looking up the main method, I read that the main method has more parameters.

Did you also update all libraries? because it will not be different in a different editor.
No, it was downloaded with the editor(and I actually don't know how to update it).
Reply
#9

Quote:
Originally Posted by zgintasz
Посмотреть сообщение
I'll try, thanks. By the way, will it be legal if I release paid application with this free version?
Yes, you may create paid Applications with the free IDE.

See here:

(This is an older version but the same rules still apply
http://social.msdn.microsoft.com/For...f-3e06c92e8d96

Infact here you go:

Quote:

Hi All,

Thanks for bringing this question up, hopefully this will make things clearer.

Provided that you comply with all the License Terms for a particular Express release, the 2010 Express SKUS can be used to create commercial software. Before you register the express SKU you are effectively running a trial version of the Express product, which expires after 30 days. There is no limit on creating commercial software during the trial period. Once you register the product, the ‘Evaluation’ text changes to show it is a licensed copy.

Thanks for your time,

Adrian Collier
Program Manager – Visual Studio Express

Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)