fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. const int MAX = 4;
  5.  
  6. int main ()
  7. {
  8. char key[4][20];
  9. char *names[4];
  10.  
  11. for (int i = 0; i < MAX; i++)
  12. {
  13. cout << " entr keys\n";
  14. cin >> key[i];
  15. names[i]=key[i];
  16. cout<< names[i];
  17. }
  18. for(int i=0; i<4;i++)
  19. {
  20. cout << names[i];
  21. }
  22. return 0;
  23. }
Success #stdin #stdout 0s 3348KB
stdin
hello
world
lets
dance
stdout
 entr keys
hello entr keys
world entr keys
lets entr keys
dancehelloworldletsdance