Xor*_*rty 17 c++ compiler-construction codepad
我有点像键盘在线编辑器(支持C++),但我想使用一些scanf,这是使用键盘不可能的.
是否有一些支持输入流的在线C++编译器?这甚至可能吗?
[ 免责声明:我更喜欢ideone.com(也支持c ++ 0x) ]
变得非常迂腐,你可以通过播放这个肮脏的技巧将你的输入填充到源文件中:
/* just skip the first two (!!!) lines when reading from t.cpp
602.030024387
423.927317911
520.43881927
131.655014874
35.7455352247
548.735653436
714.556123804
876.948673754
379.105540406
885.096900058
192.734103705
116.365922766
363.998415895
216.268387112
958.684513705
*/ // end of fake input
#include <iostream>
#include <fstream>
using namespace std;
int main()
{
std::ifstream ifs("t.cpp");
std::cout << ifs.rdbuf() << std::flush;
}
Run Code Online (Sandbox Code Playgroud)