#include <iostream>using namespace std; int main() { cout << string(50, 'x') << endl; cout << string{50, 'x'} << endl; return 0;}
Standard input is empty
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx 2x
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!