This is a small application to paste/type a c/c++ snippet and execute it. Useful for ad-hoc testing of smaller code fragments without much setup. Just paste and run.
- paste or type c/c++ snipet in input box
- select compiler (c/cpp)
- run application with the run control (or Alt-r)
- see result in the output box
- run ./cppexec.py -xclip
- see X11 clipboard content in input and result in output
- Linux -- tested on Ubuntu 12.04
- Python 3 -- it's a python 3 script
- PySide -- tested with 1.1.0, package python3-pyside in Ubuntu
- xsel -- for using X11 clipboard functionality
- gcc -- for source code compilation
- save input to file in temp folder and run it
- output result in output box
- highlight stderr output red
- put return code in the return code field