2009-09-04 4 views

답변

1
// this is a line comment, it will only comment this line 
// for the next line you need to repeat // 

/* this is a block comment 

you can do all sort of stuff here 

and you won't have to worry about beginning the line with some special chars 

until the end*/ 

두 가지 유형의 설명이 조금씩 다르므로 두 가지를 모두 말해야합니다. 동일한 파일에 줄 및 블록 주석을 포함하는 것은 오류가 아닙니다.

나는 당신이 정규 표현식은 /*과 라인의 시작 부분에 //을 교체하고 마지막에 */을 추가 할 것이다 교체 실행할 수 있습니다 생각하지만 당신이

/* first line comment */ 
/* second line comment */ 
/* third line comment */ 
/* forth line comment */ 
같은 끝낼 것