fork download
  1. #include<iostream>
  2. #include<cstring.h>
  3. using namespace std;
  4. int main()
  5. {
  6. char str1[20]="ABCDEFGHIJ";
  7. char str2[20]="KLMNOPQRST";
  8. char str3[20];
  9. int len;
  10. strcpy(str3,str1);
  11. cout<<"strcpy (str3,str1):"<<str3;
  12. strcat(str1,str2);
  13. cout<<"strcat(str1,str2):"<<str1;
  14. len=strlen(str1);
  15. cout<<"strlen(str1):"<<len;
  16. return 0;
  17. }
  18.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.c:1:9: fatal error: iostream: No such file or directory
 #include<iostream>
         ^~~~~~~~~~
compilation terminated.
stdout
Standard output is empty