我对一道关于指向函数的指针例题看不懂,希望高手可以帮我把每一步的意思都注释一下.#include #include "math.h"void main(){ double x,(*p)(double),y; x=3.14/2; p=sin; y=(*p)(x); cout
来源:学生作业帮助网 编辑:作业帮 时间:2024/09/03 06:48:51
![我对一道关于指向函数的指针例题看不懂,希望高手可以帮我把每一步的意思都注释一下.#include #include](/uploads/image/z/1802854-46-4.jpg?t=%E6%88%91%E5%AF%B9%E4%B8%80%E9%81%93%E5%85%B3%E4%BA%8E%E6%8C%87%E5%90%91%E5%87%BD%E6%95%B0%E7%9A%84%E6%8C%87%E9%92%88%E4%BE%8B%E9%A2%98%E7%9C%8B%E4%B8%8D%E6%87%82%2C%E5%B8%8C%E6%9C%9B%E9%AB%98%E6%89%8B%E5%8F%AF%E4%BB%A5%E5%B8%AE%E6%88%91%E6%8A%8A%E6%AF%8F%E4%B8%80%E6%AD%A5%E7%9A%84%E6%84%8F%E6%80%9D%E9%83%BD%E6%B3%A8%E9%87%8A%E4%B8%80%E4%B8%8B.%23include+%23include+%22math.h%22void+main%28%29%7B++double+x%2C%28%2Ap%29%28double%29%2Cy%3B++x%3D3.14%2F2%3B++p%3Dsin%3B+y%3D%28%2Ap%29%28x%29%3B++cout)
x){1Ov4lu]}zڟN}ﳩjr_Nxt?I鎞gsf\=YgOv/}cЬg]]{v)HsK/>ۼe{PɎn=̼ҔT8C)7$C/C,?3E!713OCZA!%4)'UBGC@SԩVP53472l3*m*4B%6IE9p`"̯}
{?Tv6<] tV:&