"Bowlderster" <> a écrit dans le message de news:
...
> Hi,all.
>
> I produce a function to analysis the test data,which is wave signal, and
> stored as array a[i].
> I want to figure out how many times it upcrosses zero,which means that
> when a[i]<0,and a[i+1]>0,
> it upcrosses zero one time.I need store the numbers of upcross zero, and
> the index where it upcrosses
> zero, for example, index i(a[i}<0&&a[i+1]>0) and index
> j(a[j]<0&&a[j+1]>0).Between a[i] and a[j],
> there is no upcross zero signal. The maximum and minimum value between
> a[i+1] and a[j] need to be found,
> and a new array is defined as h[n], which is used to store MAX-MIN between
> a[i+1] and a[j].So the size of
> array h should be NUM-1, where NUM is the numbers of upcross zero times.
>
> But now I can not define the array h with the size NUM-1.
>
> The following is my function, please note the pointer indexH in function
> upzeroH, and the array indexH in
> the main function, where I define it with size large enough as row/2.I
> want it's size just is wavenums.
>
> Would you please give me a hand? Any suggestion will be helpful.
>
> Thank you for your attention.
>
> Bowlderster.
>
<snip packed cobs of code>
What is wrong with your space bar ?
Your code is unreadable.
I would grade it as F without further study.
--
Chqrlie.