Answer the question
In order to leave comments, you need to log in
Which environment to choose for writing C++ code?
Hello!
Friends, help me solve the problem, I recently started learning C ++ and I can’t decide where to write the code ... (in what)
I installed Visual Studio, poked around there and realized that I didn’t need it, to be honest, this development environment began to annoy me. A cumbersome thing with a bunch of incomprehensible functionality (and even unnecessary ones) All these folders, subfolders, all these muddled with projects, solutions, etc... why is everything so confused there?
It would be easier for me ... I created a file, wrote the code, pressed the button, compiled it, made edits, saved it, compiled it, and so on ..
Gentlemen! who can offer what?
Thank you in advance.
Answer the question
In order to leave comments, you need to log in
Under windows studio is the best option. Once the tasks get a little more complex, the time to create a project will be negligible in relation to the time to write code. As a bonus, the studio gives you a sane debugger, which is very useful if you learn how to use it.
Are you going to debug the same in notepad++? And contextual help and other goodies?
Microsoft has always had a good development environment. It's not all that complicated.
From other options: NetBeans, Eclips. But for me, VS is better for Windows.
> Cumbersome thing Probably
Community or even some kind of pirated Professional? Or even cooler - Ultimate? And what the hell did you put it on?
Visual C++ Express 2008 and 2010 are not bulky at all. Meanwhile, there are quite enough of them, and for Windows it's better in every way than solutions based on MinGW, even if it's the latest version, which was just built yesterday.
> folders, subfolders, all these muddled with projects, solutions
When developing more or less large projects, where there is at least some kind of architecture and abstraction, all this is needed.
At a minimum, projects/solutions are needed, it is the project that combines several source code files, if there are at least 2 .cpp files among them, both of which must be sent for compilation.
There are, of course, other options, for example, Makefile, but all the same, they essentially come down to the same projects, while they are much less convenient, this is for Linux users with their specifics.
Although yes, sometimes I would just like to just create a file and that's it, it's a pity that MS is too categorical and VS does not provide such an option (such categoricalness already smacks of Linux - Linuxoids are also categorical in their own way)
But here I have created a project with 1 file and its saving takes extra time only 30-60 seconds, no more. Is it really that important?
There is nothing very complicated:
1. File -> Create project
2. You need to select the "Empty project" template
3. Project -> Add new element
4. Select "Source code file (.cpp)" and without hesitation drive in the name main.
5. That's it, you can write code in the window that opens, then save everything, and start debugging (an exe will appear in the Debug folder)
It's even easier if you use ready-made templates, for example, "win32 console application", although I don't .
And now - the main thing: about why you should use the Visual C ++ compiler under Windows:
https://otvet.mail.ru/answer/1787375746
This compiler comes with Visual Studio, but can also be used separately, incl. from the command line. It should be noted that the compiler itself does not require problems with projects, etc.
Maybe it can be screwed to other IDEs. But this is all only theoretically, but in practice they usually just use VS and that's it.
> why is everything so confused?
You would say exactly the opposite, having a project with about 10k source code files, and 70 projects in the solution. You would say "Thanks, VS, at least somehow helped to sort it all out." This is prof. tool, unfortunately it is not positioned for training. It is a fact.
For learning, take a convenient editor (Sublime?) and call the compiler by hand (from a command line). You will understand a lot of useful things (you will have to, otherwise nothing will work). How to transfer include directories and stuff like that. How do you get tired of doing this - write sh-nick / bat-nick. But only then you will understand why you need the Studio, and what it can/cannot make easier.
If you only need "created a file, wrote the code, pressed the button, compiled it" - you don't need an IDE.
MSYS2 ( https://msys2.github.io) will provide you with the latest compiler and debugger (gcc & gdb) and updates via pacman on Windows. For development and debugging, use QT (also install via pacman) and create projects based on cmake (also install and update via pacman).
Or even better, if possible, install ArchLinux.
Choose what you want ( www.cyberforum.ru/cpp-beginners/thread61467.html )
I'm just interested in the most popular solutions in 2015-2016. What is working now (except Visual Studio)
Embarcadero RAD Studio 10 Seattle - https://www.embarcadero.com/ru/products/rad-studio
(this is the former Borland C++ Builder)
I can also advise CodeLite . A very simple, handy and free tool for C/C++ developers. Can be used under both Windows and Linux.
Installation and use does not cause any problems, very simple and friendly interface. The only thing that will have to be done additionally is to download and install the compiler and debugger. For Windows, this can be a ready-made package tdm64-gcc-5.1.0-2, the latest version of which can always be found on the developer 's website .
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question