Re: Convert Static Array to Dynamic Array ?
- From: Jack Klein <jackklein@xxxxxxxxxxx>
- Date: Wed, 13 Jul 2005 20:25:56 -0500
On 12 Jul 2005 23:13:28 -0700, raxitsheth@xxxxxxxxx wrote in
comp.lang.c:
> I am using array in my progrm...
>
> is there any tool /tips so that i can convert my program to Dynamic
> Array...so that I can Add more Element to Array....
>
> Code is around 4000 line 'C' (not C++) program....
How is the array defined, and how is it accessed?
It may be as simple as replacing the global array definition with a
global definition of a pointer to that type, and allocating memory for
it early on in main(). Then again, it may not be that simple.
You need to provide more information.
--
Jack Klein
Home: http://JK-Technology.Com
FAQs for
comp.lang.c http://www.eskimo.com/~scs/C-faq/top.html
comp.lang.c++ http://www.parashift.com/c++-faq-lite/
alt.comp.lang.learn.c-c++
http://www.contrib.andrew.cmu.edu/~ajo/docs/FAQ-acllc.html
.
- References:
- Convert Static Array to Dynamic Array ?
- From: raxitsheth
- Convert Static Array to Dynamic Array ?
- Prev by Date: Re: Correct Typedef
- Next by Date: Re: string finding
- Previous by thread: Re: Convert Static Array to Dynamic Array ?
- Next by thread: write a multidimensional array in a file
- Index(es):
Relevant Pages
|