It is currently Thu Apr 27, 2017 10:00 am

All times are UTC - 5 hours




 Page 1 of 1 [ 1 post ] 
Author Message
 Post subject:
PostPosted: Mon Aug 20, 2007 6:44 pm 
Site Admin

Joined: Sun Feb 11, 2007 8:59 am
Posts: 1094
Location: Ontario Canada
I describe the important concept of variable scope in this VMK. I also show you how to use, create and delete dynamic memory in C++. One thing that I forgot to mention is how to use dynamic structures. They work the same way as regular variables with the exception of this: Instead of using the "." to access the struct variables, you need to us "->" when the struct is defined as dynamic. For example:



joe->iAmmo rather than joe.iAmmo



 



 


Offline
 Profile  
 
Display posts from previous:  Sort by  
 Page 1 of 1 [ 1 post ] 

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Jump to:  

cron