T
toeni.ant
Hi,
I got this problem when try to used the pointer
sample code:
int *A;
A= new A[10];
//...some codes here add data
A= new A[20];
// .. data is lost
So, I want to use the Array "Dyamically". As the words of being
"dynamic array", We can change the array size "resizable". By my code,
I lost the first time input data when I second time declaration. I
don't want to lost the data. And also I want to enlarge the array size.
I don't know how to solve this. Plz help me.
with regard,
ToeNi
I got this problem when try to used the pointer
sample code:
int *A;
A= new A[10];
//...some codes here add data
A= new A[20];
// .. data is lost
So, I want to use the Array "Dyamically". As the words of being
"dynamic array", We can change the array size "resizable". By my code,
I lost the first time input data when I second time declaration. I
don't want to lost the data. And also I want to enlarge the array size.
I don't know how to solve this. Plz help me.
with regard,
ToeNi