![]() |
|
||||||||
경고! 게시물 작성자의 사전 허락없는 메일주소 추출행위 절대 금지 |
|
허정주 [tinydew4]
2008-04-19 19:24 X
음수 처리가 안되겠네요?
__int64 __fastcall Str2Int( AnsiString Str )
{ if (Str.IsEmpty()) return 0; AnsiString StrResult; for (int i = 1; i < Str.Length() + 1; i++) { char ctChar = Str.SubString(i,1).c_str()[0]; if (isdigit(ctChar)) StrResult += ctChar; } return StrToInt64(StrResult); } ctype.h에 보시면 isdigit 라는 함수가 있습니다. 그걸 이용하시는게... 관련 글 리스트
|
Copyright © 1999-2015, borlandforum.com. All right reserved. |