Basic C++ question

You can use "atoi(concatenated)"

After concatenating two int's, there is a good likelihood that the result is no longer an int. I'd be more inclined to use atol (ascii to long).

But, yeah, this is the way to convert strings to integers.