2530 views|0 replies

79

Posts

0

Resources
The OP

【Original】Implementing the Split function in VB in VC/eVC [Copy link]

In VB, sItem = Split(s, ",")
  1. CString s; CString sItem[13]; byte pItem; byte p1, p2; s += ","; p1 = 0; pItem = 0; for (p2 = 0; p2 < s.GetLength(); p2++) { if (s.GetAt(p2) == ',') { sItem[pItem] = s.Mid(p1, p2 - p1); pItem++; p1 = p2 + 1; } }
复制代码
Of course, it is not universal enough, "13" and "," are fixed, and friends who need it can improve it by themselves.
This post is from Embedded System

Guess Your Favourite
Just looking around
Find a datasheet?

EEWorld Datasheet Technical Support

Related articles more>>

    EEWorld
    subscription
    account

    EEWorld
    service
    account

    Automotive
    development
    circle

    Robot
    development
    community

    Copyright © 2005-2025 EEWORLD.com.cn, Inc. All rights reserved 京B2-20211791 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号
    快速回复 返回顶部 Return list