Home > Back-end >  How to access the contents of the string specified
How to access the contents of the string specified

Time:12-31

Such as

StuAddr [0]. Black to get the result for color: 12345
Now want to 12345 but don't get color: this two word and: symbol should be how to obtain, every brother please give directions!

CodePudding user response:

StuAddr [0]. Black. Substr (sizeof (color: ""))

CodePudding user response:

Intercept
Press [:] string segmentation
If [yanse:] is fixed, go directly to turn around 3 characters
Have a ready-made functions, their implementation is simple
  • Related