阅读背景:

获取子例程以返回引用数组的指针,然后在main中取消引用它(在C中)

来源:互联网 

Hiya im trying to write a code for basic 1D Monte-Carlo integration. To do so I need a list of pseudo-random numbers which I can then input into a function (stored in another subroutine). I've given the list of random numbers a pointer but when I try to dereference it in main I get "error: incompatible types when assigning to type ‘double[11]’ from type ‘double’ " . Could anyone tell me where I'm going wrong? My code can be found here:Hiya im trying to write a code for basic 1D Mon




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: