Than
Quote (Aimed_Shot @ Oct 22 2014 09:12pm)
I think you could do...
Code
string num = str.substr(7); //will get the substring of str from position 7 to the end.
int value = atoi(num.c_str()); //should do it for you
make sure to include stdlib
thank you very much sir
ill try to integrate that into my code , and get it working. Thanks again!
Quote (AbDuCt @ Oct 22 2014 09:18pm)
atoi is such a C thing to do. I'm pretty sure there is a integer method for strings like .to_i()
I will try to look into that possibly when i got the time, but right now im going to use almed_shots method. im racing the clock xD
This post was edited by Pino38 on Oct 22 2014 07:40pm