Well, not really but for some uses it is handy. This little utility allows you to compile and execute simple C++ program by typing the essense of them on the command line. Download: cev script.
The argument --Iincludefile can be used to #include extra files.
Other arguments starting with a dash will be passed as compiler and linker options.
The arguments not starting with hyphens will be inserted into a temporary C++ program. The last argument will be wrapped in a main function.
Execute some code
cev 'double x=sqrt(3); cout < < x;'
Define a function and use it
cev 'int fak(int n) { return n==1?1:n*fak(n-1); }' 'cout < < fak(4);'
Note the use of simple apostrophes. You can use double quotes or none, but then you need to quote the C++ code in more complicated ways.