fork download
  1. #include<iostream>
  2.  
  3. using namespace std;
  4.  
  5.  
  6. int main(){
  7.  
  8. char str[100];
  9.  
  10. int size=0;
  11. int num=0;
  12. int i=0;
  13. printf("문자열을 입력하세요 \n");
  14. fgets(str,80,stdin);
  15.  
  16.  
  17. size=strlen(str);
  18. cout<<"배열의 사이즈:"<<size<<endl;
  19. while(i<size-1){
  20.  
  21. if(str[i]=='\n')
  22. printf("ㅁㅁㅁ줄바꿈3\nㅁㅁㅁ");
  23. //////////////////////////////////
  24. if(i%30==0 && i!=0)
  25. printf("ㄹㄹㄹ줄바꿈1 \nㄹㄹㄹ");
  26.  
  27. printf("%c",str[i]);
  28. i++;
  29.  
  30. }
  31.  
  32.  
  33.  
  34.  
  35.  
  36. return 0;
  37.  
  38. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
compilation info
prog.c:1:19: fatal error: iostream: No such file or directory
compilation terminated.
stdout
Standard output is empty