create sine lookup table in c++
<p>how can i rewrite following  pseudo code  in c++?</p>

<pre><code>real array sine_table[-1000..1000]
 for x from -1000 to 1000
     sine_table[x] := sine(pi * x / 1000)
</code></pre>

<p>i need create sine_table lookup table</p>
