fork download
  1. #include <iostream>
  2. #include <cstring>
  3. using namespace std;
  4.  
  5. int main() {
  6. char text[100] = {0};
  7. for (char currentText[100]; cin >> currentText; strcat(text, currentText));
  8. cout << text;
  9. return 0;
  10. }
Success #stdin #stdout 0.01s 5284KB
stdin
A1 B4 D3 H1
stdout
A1B4D3H1