최근 글 목록
-
- temp
- 로이쿤
- 2008
-
- Nirvana - Smells like teen...
- 로이쿤
- 2008
-
- RATM - bombtrack
- 로이쿤
- 2008
-
- 정보통신활동에서 시작은 했...(3)
- 로이쿤
- 2007
-
- Effective 정리는 Springnot...
- 로이쿤
- 2007
bool ReplaceMultiLineComment(string& src) { int nSize = src.size(); bool bStart = false; int nStartIndex = 0, nEndIndex = 0; for(int i=0;i char c = src[i]; if(!bStart) { if(c == '/') { if(src[i+1] == '*') { nStartIndex = i; bStart = true; } } } else { if(c == '*') { if(src[i+1] == '/') { nEndIndex = i + 2; src = src.substr(0, nStartIndex) + src.substr(nEndIndex); return true; } } } } return false; } |
최근 댓글 목록