1. Recommend
2、https://www.tutorialspoint.com/compile_cpp_online.php
3、https://www.anycodes.cn/#/OnlineCode
test:
#include <iostream> using namespace std; int main() { cout<<"input sth."<<endl; string a; cin >>a; cout << a << endl; return 0; }
The second will overwrite the original. Full coverage.