Is there a C / C ++ environment that does not request persistence before compilation?

Here is a general situation for me: I have a code idea in my head (in this example, this is in Python), so I open PyScripter, write the code, and then just run it. PyScripter does not ask me to save the code in advance, and after a few seconds I gladly looked at the results of my ego.

Now I understand that C is a compiled language, and the code must be saved in advance, et cetera, etc., but I was wondering if there is such an IDE that will allow you to simply enjoy your code without having many saved files or folders named "test1.*" , "test2.*" , etc.

One of the ways, I think, can be done, since the IDE will manage all the project files in a temporary folder, up to (and if at all ...) the user clicks "save / save as"; then it will actually save the files in the right place. Therefore, in most cases, when the user just wants to write code and see its output, the IDE will not bother the user with save requests.

I would be very happy if someone could recommend such IDEs to me (if they exist at all). Thanks a lot in advance =]


Edit: @Michael Burr Yes, the intention is not to really come up with file names in the first place.

+6
source share
4 answers

You can try ideone.com . It’s very convenient for me :-)

It is online, so no real installation is required, and it supports many well-known programming languages.

+7
source

For C ++, you can do this in Visual Studio. The next time you change the file, just press F5 (Run), and when the prompt appears (asking if you want to save the file before compilation), just check the box that says Don't ask again .

For Java, Eclipse (possibly others) provides automatic compilation, but you still need to save the file. You just need to check Build Automatically .

+6
source

CodePad, apparently, is created precisely for this reason. Write your code, click the button, see how it works. No fuss and save hundreds of files.

http://codepad.org/

+5
source

If you are using emacs:

  (defun my-emacs-command-save-compile () "save and compile." (interactive) (save-buffer) (recompile)) 
+3
source

Source: https://habr.com/ru/post/915725/


All Articles