saving string + int to string array.

This is my first post here.

So in short I'm trying to save a string plus an int to an array.
But when doing so I get an error like "no match for "operator +"".
After that I tried to convert the int using itoa but I couldn't get it to work.
Any help would be appreciated.

Example for what I'm trying to do:
1
2
3
4
5
string array[];
string X;
int x

array[0] = X + x;
Topic archived. No new replies allowed.