469,622 Members | 2,155 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,622 developers. It's quick & easy.

Incrementing a Variable Name

Daz
Hello.

Please could somebody explain to me a method for auto-incrementing a
variable name?

I need to append a number to the variable name as it's created as it
will be automated.
For example:
blah1
blah2
blah3
blah4
....

Any help would be grately appreciated.

May 1 '06 #1
5 2143
You can't use an array?

May 1 '06 #2
You can't use an array?

May 1 '06 #3
Daz
Yes I can, and more precisely, I think I will use a vector.

I do apologize for my stupidity, it's now 6:30AM and it's been a long
night.

Cheers Nate! :o)

May 1 '06 #4
Daz wrote:
I do apologize for my stupidity, it's now 6:30AM and it's been a long
night.


Could we put "C++ requires 7 hour work days" in the FAQ?

--
Phlip
http://c2.com/cgi/wiki?ZeekLand <-- NOT a blog!!!
May 1 '06 #5
Nate the Capricious wrote:
You can't use an array?


It's nearly impossible to tell what you are talking about. See the
information below.

Brian

--
Please quote enough of the previous message for context. To do so from
Google, click "show options" and use the Reply shown in the expanded
header.
May 1 '06 #6

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by Mothra | last post: by
2 posts views Thread by John Wilkinson | last post: by
27 posts views Thread by Erik de Castro Lopo | last post: by
8 posts views Thread by mantrid | last post: by
53 posts views Thread by subramanian100in | last post: by
reply views Thread by devrayhaan | last post: by
reply views Thread by gheharukoh7 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.