cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
Beginners
saving string + int to string array.
saving string + int to string array.
Nov 1, 2011 at 8:30pm UTC
Woehler
(1)
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.