Changes between Version 28 and Version 29 of ResumedC
- Timestamp:
- Jun 4, 2009, 6:33:43 PM (15 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
ResumedC
v28 v29 229 229 { 12, 0 } 230 230 }; 231 }}} 232 233 In order to reference an element of a structure we use the "'''.'''" (dot) symbol, but if the structure is a pointer, then we need to use '''->''' 234 {{{ 235 #!C 236 /* Element of a structure */ 237 point.horiz 238 /* Same thing if the structure is a Pointer */ 239 point->horiz 240 /* that is equivalent to: */ 241 (*point).horiz 231 242 }}} 232 243