newbie needs help with this...
can anybody help?
newbie needs help with this...
can anybody help?
Please read our homework policy. You need to put in some effort, show what you have done, before help is given.
Look up a C++ Reference and learn How To Ask Questions The Smart WayOriginally Posted by Bjarne Stroustrup (2000-10-14)
ok sorry...
i tried to do with inserting but it doesnt work this is my algorithm...
any help?Code:where s=array size and p=position void insert (int a[], int s, int p) { for (int i=s; i<p-1; i++) a[i]=a[i+1]; a[p]=a[i]; s++; } for (i=0; i<s; i++) cout<<a[i];
There is no linked list in sight in your code. That's trying to insert into a plain old array.
I might be wrong.
Quoted more than 1000 times (I hope).Thank you, anon. You sure know how to recognize different types of trees from quite a long way away.