So i have Bloodshed Dev C++ as my as my IDE software. Since I was a beginner in programming with C++ for the language, I want to know a better IDE software to learn C++ Reason for this thread. When I run the program HelloWorld, the console window open but then closes immediately. I did have the solution for the problem that is putting, code at the end of the main() function. But this is tedious so I want an IDE that automatically pause the console screen after the program has finished executing. p/s Basically, recommend me the software that you use to learn C++ language.
Visual Studio is always the way to go in my opinion for c++. To stop the program from closing you can either put system("pause"); at the end or ctrl+f5.
I think any GUI compiler will do the work. Although there was this compiler i downloaded from source forge.net was pretty good. I am more of a Python guy though. pY Charm.
Micrsoft studios, notepad +, geanie, net beans, qt. (May have mispelled some) they all will work just fine.
I don't know about C++, but in C# you can just add readln so it won't auto close.. And for IDE, Visual studio is good I think... or maybe Xamarin
the program exits because the main function returns. Delete cin.ignore and replace with system("pause"); or if that does not work just use getchar(); i use codeblocks as my IDE. however you can actually just use the simple notepad for coding. EDIT: I forgot it was C++. Search google for Visual Studio Community this is a free version for students. no need to pay
When you compile and run the program, you are running an actual, y'know, program. Completely stand-alone. The compiler is not responsible for any misbehavior. If you compile the same code in any other compiler and run it, the results should be identical. TL;DR: Changing the compiler isn't a solution to your problem.
Try getting Ubuntu or something, if you're going to be programming a lot. You can use repl.it (An online compiler; I use it a lot) Sublime is a nice text editor. You really shouldn't use an IDE if you're a beginner.