I have loaded some data into an array of 80. how do i go about removing the first element of the array and pusing everything else one position in the array?
I have loaded some data into an array of 80. how do i go about removing the first element of the array and pusing everything else one position in the array?
How about a loop? Or a loop disguised as a function (memmove)? In either case, you'll still need to have some way of keeping track of how many items you have, because you'll end up duping the last entry you move. So you need a way to mark "empty" or to keep track of the "length".
Post your attempt.
Quzah.
Hope is the first step on the road to disappointment.
This is mostly a specialised version of what you already asked here:
http://cboard.cprogramming.com/showthread.php?t=75832