I'm trying to extract a number from string before and after a special character(|).
I tried to get a value after the pipeline character.
Eg: a= "4|5" int y=a.substr(a.find('|') + 1);
This works fine. Still Is there a better way to do? Also,I got struct to get a value before pipeline character. please help this newbie to solve the problem.
Aucun commentaire:
Enregistrer un commentaire