Post your questions, suggestions and experiences regarding game design, integration of external libraries here. For irrEdit, irrXML and irrKlang, see the ambiera forums
I think the error may lie in the fact that a, within the struct is simply an object of type int, it is not a pointer. My guess would be that the correct line of code to access it would be:
I seem to remember getting caught up with something like this in the past. The compiler error is one of those that give you half an idea as to what the actual problem is.
The Open Descent Foundation is always looking for programmers! http://www.odf-online.org
"I'll find out if what I deleted was vital here shortly..." -d3jake
d3jake wrote:I think the error may lie in the fact that a, within the struct is simply an object of type int, it is not a pointer. My guess would be that the correct line of code to access it would be:
I seem to remember getting caught up with something like this in the past. The compiler error is one of those that give you half an idea as to what the actual problem is.
Nope. Though a is not a pointer b IS. And to access the members of a pointer you have to use ->. If you were somehow accessing the members of a instead, then you would use .