CString을 이용한 Token처리

다음은 CString을 이용한 Token처리 방법 예제입니다.

 Example

 
 
CString str(_T("%First Second#Third")); 
CString resToken; 
int curPos= 0; 
resToken= str.Tokenize("% #",curPos); 

while (resToken != "")
 { 
        printf("Resulting token: %s\n", resToken); 
        resToken= str.Tokenize("% #",curPos); 
}; 
 

 Output

 Resulting Token: First
 Resulting Token: Second
 Resulting Token: Third

Posted by chungki

2009/09/02 10:22 2009/09/02 10:22
,
Response
No Trackback , No Comment
RSS :
http://www.chungki.net/tc/rss/response/285


블로그 이미지

Nice !!!!!!!!

- chungki

Notices

Archives

Authors

  1. chungki

Calendar

«   2012/05   »
    1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30 31    

Site Stats

Total hits:
73375
Today:
6
Yesterday:
20