Automatically generate variables
- From: "Nate" <nverbeek@xxxxxxxxxxxxx>
- Date: 13 Feb 2007 08:35:59 -0800
Hello,
I am looking for a method to automatically declare variables in C.
I'm not sure if there is a good way to do this, but I had something
like this in mind...
int i;
for(i = 1; i < 4; i++){
int variable....
}
For example, this loop would declare the following variables all of
type int:
variable1
variable2
variable3
Is something like this possible? Is there another way?
Thanks in advance,
-Nate
.
- Follow-Ups:
- Re: Automatically generate variables
- From: Old Wolf
- Re: Automatically generate variables
- From: jacob navia
- Re: Automatically generate variables
- From: Mark McIntyre
- Re: Automatically generate variables
- From: Christopher Benson-Manica
- Re: Automatically generate variables
- From: Marc Boyer
- Re: Automatically generate variables
- Prev by Date: Re: Automatically generate variables
- Next by Date: Re: free()
- Previous by thread: Free Ebooks on Cooking, Sex, IT, Hacking, Fiction, Drama. Website Directory submisison, Articles, Forum. .
- Next by thread: Re: Automatically generate variables
- Index(es):
Relevant Pages
|