|
-
Oct 18th, 2001, 08:16 PM
#1
Thread Starter
Lively Member
VERY URGENT!!! Dynamic Arrays (Adding elements)
Ok, I have no idea how to do this, so I'm hoping someone here does. Would it be possible to add an element to an array after it has been declared and initialized with some number of elements? For example:
void main(){
int x[4];
x[0]=1;
x[1]=2;
x[2]=3;
x[3]=4;
?????????????
}
I have something like this, now how would I be able to add another element to this array? Please help, this is very urgent! Thanks.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|