// first specify possibility
|
// first access possibility
|
myPointStruct.x = 10
|
int x = DIN["myPointStruct.x"];
|
myPointStruct.y = 12
|
int y = DIN["myPointStruct.y"];
|
myPointStruct.z = 24
|
int z = DIN["myPointStruct.z"];
|
myPointStruct.col = "blue"
|
char* c = DIN["myPointStruct.col"];
|
|
|
// second specify possibility is shorter
|
// same as first access possibility,
|
// and therefore recommended
|
// but this access possibility allows the
|
myPointStruct
|
// usage of separate variables for each
|
{
|
// level and is therefore recommended.
|
x = 10
|
int x = DIN["myPointStruct"]["x"];
|
y = 10
|
int y = DIN["myPointStruct"]["y"];
|
z = 24
|
int z = DIN["myPointStruct"]["z"];
|
col = "blue"
|
char* c = DIN["myPointStruct"]["col"];
|
}
|
|