AnsiString __fastcall Make(AnsiString change1)
{
//문자열->유니코드 변환 함수?
int a=0;
AnsiString code, toll, point;
char sTime[3];
strncpy(sTime,change1.c_str(),3);
for(a;a<3;a++){
if(sTime[a]=='0'){
toll = "0x30";
}else if(sTime[a]=='1'){
toll = "0x31";
}else if(sTime[a]=='2'){
toll = "0x32";
}else if(sTime[a]=='3'){
toll = "0x33";
}else if(sTime[a]=='4'){
toll = "0x34";
}else if(sTime[a]=='5'){
toll = "0x35";
}else if(sTime[a]=='6'){
toll = "0x36";
}else if(sTime[a]=='7'){
toll = "0x37";
}else if(sTime[a]=='8'){
toll = "0x38";
}else if(sTime[a]=='9'){
toll = "0x39";
}
code += toll;
}
point = code;
return point;
}
...........아 지저분하다....
AnsiString->char[] 로 변환해서 하나씩 비교해서 치환..(...)
그후 통합(...아 지저분해....)
......짧게 만들기 귀찮...(...)
거즘 2주 고민해서 무식하게 풀었습니다(....)
간단하게 함수화(.......)
|