Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
예제프로젝트를 실행시 작동이 잘되지만
직접 작성하여 실행해보면 되지않습니다.
문제는
밑에서부터 위로6번째줄
for i := 0 to Length(s) do
에있습니다.
문자열의 첫번째는 길이가 들어 있고, 이곳은 직접 읽고 쓸수 없습니다.
그래서 첫번째를 건너 띄고, 1 인덱스부터 for 문을 돌려야 합니다.
아래의 코드로 작성시 작동되오니 혹시 오류가생겨 막히는분들에게 참고가되는 글이였으면좋겠습니다.
for i := 1 to Length(s) do