Hi Experts. I'm new to C++. I would like to know how can I split this and assign it to variables.
I want to extract it like this:
Variable1 = X56345521
Variable2 = Surname
Variable3 = Initials
Variable4 = 542153
Variable5 = 2000000000
I think the best way for Surname and Initials is to get them both as an array then split it up which I think will be a bit easy to get as its has special characters, but already have a code to get it as an array, now need to assign each data to a correct variable.
The code I have is:
array<String^>^ ParseMyData(String^ data)
String^ tempData = data->Split(gcnew String('^',1)->ToCharArray());
return tempData->Split(gcnew String('/',1)->ToCharArray());