연글 죄송합니다..

skan1543 Reply 9 years 2 weeks ago
#include<stdio.h> char input[100001]={0,}; int main() { int c,cnt=0; int i,j; bool ischar=0; bool istrash=0; while( (input[cnt++]=getchar())!=EOF ); for(i=0;i<cnt;i++) { if(!istrash && input[i]=='"') ischar=!ischar; else if(!ischar && input[i]=='/' && input[i+1]=='*') istrash=1; if(ischar) printf("%c",input[i]); else if(input[i]=='\n' || !istrash) printf("%c",input[i]); if(istrash && input[i]=='*' && input[i+1]=='/'){ i++,istrash=0; } } return 0; } 의 경우에.. critical data가 뭐가 있을까요? ㅠㅠㅠ.. 정상적인 컴파일 되는 소스가 input이라고 하시는데.. 안될게 없을것같은데 말입니다.ㅠㅠ
skan1543 Reply 9 years 2 weeks ago
아참.. 코멘트제거 문제입니다!
pichulia Reply 9 years 2 weeks ago
/*/ abcd */ef 를 넣어보세요. ef가 나와야합니다