Get the App
SLTechnology News&Howtos  ›  Development  › 

How to use string Segmentation function in C++

Shulou Source: shulou.com Published: 2022-05-31 22:39:32 10月04日 Update

This article mainly introduces "how to use string segmentation function in C++". In daily operation, I believe many people have doubts about how to use string segmentation function in C++. The editor consulted all kinds of data and sorted out simple and easy-to-use operation methods. I hope it will be helpful to answer the doubts about "how to use string segmentation function in C++". Next, please follow the editor to study!

Where str1 is the string to be split and str2 is the string used to split.

CString* GetStr (CString str1, CString str2, int & num) {int long1=str1.GetLength (); int long2=str2.GetLength (); int sign=0; char*ch2=new char [long1]; char*ch3=new char [long2]; strcpy (ch2,str1); strcpy (ch3,str2); int iMag0; while (1) {if (j==long1) break; if (CH2 [j] = = CH3 [I]) {+ + j; + + I; + + sign; if (sign==long2) {iLife0; sign=0; + + num }} else {jackers; sign=0;}} num++; / / num++; iTunes 0; jacks 0; sign=0; CString*str=new CString [num]; int begin=0,end=0; int nasty 0; while (1) {if (j==long1) {/ / nkeeper; for (int kryptonite)

Tags: Characters strings functions caches learning more help practical next articles methods theories knowledge articles websites materials follow questions easy to use practice Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Apple vpn Shulou Technology Linux OPPO Reno