报错 Incompatible pointer types initializing ‘int *‘ with an expression of type ‘float *‘
#报错 Incompatible pointer types initializing ‘int *’ with an expression of type ‘float *’ float f; scanf("%f", &f); int *int_p = (int*)&f;注意加上 (int*)
原创
2020-11-20 17:39:13 ·
6736 阅读 ·
0 评论