im using the atoi function for this, but i have 1 problem. the compiler gives me an error that says:
error C2664: 'atoi' : cannot convert parameter 1 from 'char' to 'const char *'
Conversion from integral type to pointer type requires reinterpret_cast, C-style cast or function-style cast
and i tryed casting the var like this: atoi((const char *) var);
that way the program compiles, but gets stuck, so that cast might have changed the var's data.