我遇到了一些我試圖實現的「程序流」問題。 下面的MWE中的輸出應該是「總和:10」,但它表示「總和:0」,因爲功能set_array_element未設置數組元素。爲什麼不呢? #include <stdio.h>
#include <stdlib.h>
typedef struct example example;
struct example {
int nrOf;
我有2個實體這樣的: EntityX:
id Long
name String
entityYId Long
EntityY (this entity is very hard, because it has a lot of data)
id Long
name String
xxx
xxx
.....
我需要做的是這樣 Root<EntityX> xRoot = cr