BCB 分割字串函數

發表於 五月 12, 2008. 分類: C/C++ |

  1. TStringList *strList = new TStringList() ;
  2. TSysCharSet splitChars = TSysCharSet() << ‘ ‘ << ‘.’;
  3. ExtractStrings(splitChars, splitChars, “192.168.0.1″, strList);
  4. for (int i = 0; i < strList->Count; i++)
  5. ShowMessage(strList->Strings[i]);
  6. delete strList;

Make a Comment

發表迴響

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / 變更 )

Twitter picture

You are commenting using your Twitter account. Log Out / 變更 )

Facebook照片

You are commenting using your Facebook account. Log Out / 變更 )

連結到 %s

Liked it here?
Why not try sites on the blogroll...

Follow

Get every new post delivered to your Inbox.