Re[2]: [Dev-C++] Question "." vs "->"
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Zodiaq <zo...@ac...> - 2003-11-03 21:27:54
|
Hello vasanthsena and all Dev-C++ users, Monday, November 3, 2003, 10:17:01 PM, vasanthsena wrote as follows: vx> Oops I forgot to mention that I am programming in C. Huh, and what about it?? In C you can create dynamic objects from structures... these are without methods and contructor/destructor, but fields are still accessed using . or -> regarding how you created these instances... Struct_name q; q.field_a = 13; Struct_name *q = malloc( sizeof( Struct_name )); q->field_a = 13 free( q ); still - go get good book about C and READ IT! -- regards, Zodiaq |