pass data between Java and C

后端 未结 5 1403
南旧
南旧 2020-12-06 02:51

I have a C structure.

struct data{
    double value1[50];
    double value2[50];
    int count;
};

I want to map data from java to this C

5条回答
  •  执念已碎
    2020-12-06 03:26

    While there is nothing wrong with the CSV format to receive data from different programs, I lean toward using XML to do it. Part of it is subjective preference for the data format. With XML you can define a robust construct that you can validate before you read into your program. And IMHO, a proper XML design is much more readable for debugging purposes.

提交回复
热议问题