So your saying that
int variableName = 10;
is a string that you need to retrieve the value 10 from?
I've only done a little c++, but I would split the string from the 'space' and the ';' to get the value 10, then parse it to an int. I had code doing something similar for an assignment (again c++ not c) but cant find it on my hd sorry.