C ++解释器/控制台/片段编译器 [英] C++ interpreter / console / snippet compiler
问题描述
我正在寻找一个程序,我可以在一个窗口中输入一个C ++代码片段
,按一个按钮,并在另一个窗口中获取输出。
编译应以某种方式隐藏在按钮后面。在
每个片段基础将是好的,完全交互式可能要求
太多。它应该在Linux / Unix下运行。主要用例是
学习/测试/短调试等。
I am looking for a program where I can enter a C++ code snippet in one window, press a button, and get output in another window. Compilation should somehow be hidden behind the button. On a per-snippet basis would be fine, full interactive probably asking too much. It should run under Linux/Unix. Main use case would be learning/testing/short debugging, etc.
相关资料我发现:
- python的Reinteract项目(我告诉sage有类似的功能)
-- the Reinteract project for python (which i'm told sage has features similar to)
- C#的同一个线程:C# Console?
-- the same thread for C# here: C# Console?
- 来自CERN ROOT项目的CINT解释器
(可能接近,但也许有更舒适的应用程序)
-- the CINT interpreter from the CERN ROOT project (which may be close, but maybe there are more comfortable apps around)
- 一些程序称为快速编译或代码片段,是M $。
-- some programs called Quickly Compile or Code Snippet, which are M$.
推荐答案
http:// codepad.org/ 很好地用于此目的。默认情况下,当您点击提交并显示结果(或您可能有的任何错误)时,它会运行您粘贴的内容。
http://codepad.org/ works nicely for this purpose. By default, it will run what you paste when you hit submit and display the result (or any errors you might have).
这篇关于C ++解释器/控制台/片段编译器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!