On Fri, 21 Nov 1997, Chuck Reed wrote: >I have seen a lot of new stuff in C, but one thing is just really escaping >me. I cannot seem to figure out all the *->ch or *->* or whatever. What in >gods name does this "->" mean? I have looked in my on-line C tutorials and >I can't seem to find it. Looks like the use of a pointer to me, literally and figuratively. * - I'm not going to try to explain here, it changes meaning, the C book will have it in there. When you are accessing a pointer to a structure, you use -> for the members but for a static structure you use . ch->player.name ch is pointer player is not a pointer This should be under the 'pointer' section of the book... The question is more appropriate for comp.lang.c than here though. -- George Greer - Me@Null.net | Genius may have its limitations, but stupidity http://www.van.ml.org/~greerga | is not thus handicapped. -- Elbert Hubbard +------------------------------------------------------------+ | Ensure that you have read the CircleMUD Mailing List FAQ: | | http://democracy.queensu.ca/~fletcher/Circle/list-faq.html | +------------------------------------------------------------+
This archive was generated by hypermail 2b30 : 12/08/00 PST