I would very much like a compiler showing what mistakes I have made, if there are any. Advise newbie

Closed due to the fact that it is necessary to reformulate the question so that it was possible to give an objectively correct answer by the participants ߊߚߤߘ , aleksandr barakin , Kromster , Sasha Omelchenko , Saidolim May 29, 17 at 13:39 .

The question gives rise to endless debates and discussions based not on knowledge, but on opinions. To get an answer, rephrase your question so that it can be given an unambiguously correct answer, or delete the question altogether. If the question can be reformulated according to the rules set out in the certificate , edit it .

  • 3
    I am wondering where you found a compiler that shows no errors. Although, of course, it depends on what to call errors. - VladD
  • I did not find it, they gave it to me and said it was good. - Solly
  • @Solly and what is it called? - alexlz
  • I do not remember already deleted. It looks like a DEVCPP, again, as I was told. - Solly

5 answers 5

For a beginner, probably, a good integrated development environment (IDE) is better right away:

Microsoft Visual Studio Express 2013 for Windows Desktop

  • @DreamChild Not without it) But not too much, it's an IDE, not a text editor. She runs smartly for her functionality. In extreme cases, the command line + notepad. QtCreator + MinGW is a real alternative, in my opinion. But such a smart debugger, as in MSVS, is nowhere to be found! =) And I try to teach all beginners to use it right away, because this is an important software for C / C ++ and helps a lot in learning experiments. - free_ze
  • one
    @Free_ze is true. Creates, say, a newcomer to HelloWorld in VC, sees that some stdfax.h is attached to it, removing which he gets some vague errors (when there is no stdfax in all examples). Or stupid mistakes when you can't use scanf, and instead you should use scanf_s. I copied a newbie from somewhere the code, and then either had to put it in order, forcing the compiler to gobble it up or look for how to turn this fastidiousness off. And there can be many such examples. This initially creates inconvenience (somewhere small, somewhere not very), which do not add love to the language - DreamChild
  • one
    @alexlz Newbie and emacs? How do you people do not mind .. (Yes, the studio debugger is better) At least the fact that it is closely associated with it. UPD: Comments are over) Okay, that's all the nagging) Even if the neophyte will not break away from the textbook, he will write this work. - free_ze
  • 2
    > Or maybe a newbie would be better off learning about IDE first? @avp maybe. Only if he wants? Newbies need to be attracted, not scared away - DreamChild
  • one
    @DreamChild raises issues that are discussed regularly and without result. To the question of the TS @Solly relationship that does not have (what is its compiler? What does it mean "does not show an error"?) Ie chatter about anything. Here you can remember Vysotsky, and Negroes - the sense of this will be no more, but not much less. - alexlz

A beginner more than a little brisk IDE CodeBlocks is enough for the eyes. It is good for its lightness, speed and ease of installation, supplied by the compiler (MinGW) and having all the necessary tools for convenient work for a beginner.

    @Solly and you learn C ++ for yourself or for an assessment on study?


    if to assess it, feel free to put an IDE (integrated development environment) like Microsoft Visual Studio or, in my opinion, more convenient QtCreator or any other except "C ++ Builder" and "RAD Studio" (someday you will start making graphical applications and maybe you will be sent in these two environments and then they will teach you mouse-click programming, useless and extremely detrimental)

    On the Internet you will find a bunch of examples with pictures and you can easily get an estimate, but you will not have " real " knowledge of C ++!


    it is quite another matter if you want to program for yourself or if you want to earn by programming. The second option is extremely complicated, especially for a newbie in it, you need to separately create files c, h, cpp, hpp (program source files), you will need to separately run all this happiness through the console, you will have to manually write make-files and you will have to read more about building programs and why "C ++! = C"

    in this case, you can also write the source code in any "smart" text editor, even if it is built into the IDE (for example, write in Visual Studio and compile manually)

    and only having understood all this you can truly call yourself a C ++ programmer.

    • one
      Why so complicate? It may be worth it in stages, first learn the basics to know why this whole manual routine is needed with compilation, linking. And it sounds like starting with IDE, the path to the profession will be ordered) Programmers are people who are interested in all of this, and not those who run shabby trying to "create their own game." - free_ze
    • one
      First, are you sure that the way to "truly call yourself a C ++ programmer" lies only through the ability to "separately create files c, h, cpp, hpp" and "manually write make-files"? I think that other aspects of the language are much more important, and there are a lot of them. Secondly, the above-mentioned skills are, of course, useful, but you cannot call them obligatory. Agreeing with @Free_ze, I don’t see anything terrible in starting with the IDE, and not the naked compiler. Third, if a person is looking for a compiler specifically for learning, then there’s nothing terrible about mouse-click programming . DreamChild
    • @DreamChild I suppose that I meant the desire to spend a novice on all the rakes at once, so that later it would be easier to live. However, the chance is really really to confuse or scare away. This is how the system of higher education works: to give knowledge "for growth", perhaps with incomplete awareness, but then it will be much easier to recover all this information from scraps. But this is a hobby, motivation is very important. And what kind of moral will there be, when, in order to run the hellovord, you need to have sex with the compiler first, then with the linker, or even with CMake `th? (I exaggerate, of course) - free_ze
    • @Free_ze agree, many of these manipulations will discourage any desire to program - DreamChild
    • For myself. And what is IDE and how does it differ from the compiler? - Solly

    When I start learning C ++, I used Microsoft Visual C ++ and, according to the book, all the actions were performed in it. I advise!

      QtCreator + MinGW. It'll be enough.

      • And what about the debugger case out of the box? - free_ze
      • I did not notice any problems, it works quite well - rabbitinspace