|
서비 님이 쓰신 글 :
: dstring.h 파일이 열리더니
:
:
: char& __fastcall operator [](const int idx)
: {
: 요기>> ThrowIfOutOfRange(idx); // Should Range-checking be optional to avoid overhead ??
: Unique(); // Ensure we're not ref-counted
: return Data[idx-1];
: }
:
: 자꾸 저부분에서 걸리네요 이상하넹..ㅡㅡ;
AnsiString strTemp="this is a test";
strTemp[1] <--- O
strTemp[0] <--- X
index는 1부터 시작일겁니다.
범위 맞는지 체킹~~~
|