im recently working on a project, where I need to read one line, check it for data, then delete some of the data in the string, im using substr. The problem comes when I have to do it in functions.
sorry if i confuse you, i'll try give a example.
FX.
Sorry its not snips, becusase its too big and this would really simplify it, plus make it faster.
Regards
sorry if i confuse you, i'll try give a example.
FX.
Code:
int DoSome(string *inp) {
if (inp.substr(0,6)=="myflow") { // here's my problem, inp only points, and don't got the method substr.
inp = inp.substr(6);
// lot of code here
}
}
int main() {
string hello;
hello = "myflow123";
DoSome(&hello);
}
Regards
Comment