1、推荐
https://wandbox.org/
2、https://www.tutorialspoint.com/compile_cpp_online.php
3、https://www.anycodes.cn/#/OnlineCode
4、https://tool.lu/coderunner/
测试:
#include <iostream>using namespace std;int main() {cout<<"input sth."<<endl;string a;cin >>a;cout << a << endl;return 0; }
第二次会覆盖掉原来的。全覆盖。