unsigned long B = atol(str.c_str());
If you want to convert to unsigned long, you need a function that can handle unsigned long
unsigned long B = atol(str.c_str());
If you want to convert to unsigned long, you need a function that can handle unsigned long