2014-04-25 6 views

답변

0

to_ascii() 기능을 사용하는 것이 좋습니다.

예 :

x="string"  
//loop starts here 
x=to_ascii(x[i]) //i=counter of your loop, if i=1 it converts "s" to ascii code 
if: x>=48 && x<=57 //ascii numbers for 0-9 start at 48 and end at 57 
return true; 
//loop ends here 

실제 일 :
enter image description here

출력 :
의미가 enter image description here

+0

, 나는 당신의 도움을 주셔서 감사합니다 수를 찾을 잘못된 프로세스를 사용했다 . – user3554168

+0

답변을 수락하십시오 (예 : [link] (http://meta.stackexchange.com/questions/5234/how-does-accepting-an-answer-work/5235#5235)) – dvd

관련 문제