Accessing public class memory from C++ using C

后端 未结 5 522
旧巷少年郎
旧巷少年郎 2021-01-24 22:27

Greetings Everyone.

I\'m currently writing a multi-language programe in C, C++ and fortran on UNIX, unfortunatly I run into \"Segmentation Error\" when I try and execute

5条回答
  •  被撕碎了的回忆
    2021-01-24 22:57

    What's the content of CFE() ?

    Why not define CFE() as; void CFE(float *density, float *energy, int NumElem);

    So you don't have to fool around with casts and just do; density[i] = ... inside your loops?

提交回复
热议问题