View Single Post
  #10   Spotlight this post!  
Unread 22-03-2012, 09:21
ctccromer's Avatar
ctccromer ctccromer is offline
Animus
AKA: Tucker Campbell
FRC #3753 (Bulah Bots)
Team Role: Alumni
 
Join Date: Jan 2012
Rookie Year: 2012
Location: Baton Rouge, Louisiana
Posts: 190
ctccromer is a name known to allctccromer is a name known to allctccromer is a name known to allctccromer is a name known to allctccromer is a name known to allctccromer is a name known to all
Re: C++ help: Understanding pointers?

Thanks everyone for the support!

To continue on from Bongle's Post #7: So you don't need to allocate memory for programs with a smallish amount of variables, only large amounts like 1,000+? And either way, what's the order to allocate memory for an integer and create a normal integer in that space?

Everything I'm learning I'm also trying to apply to how I'll use it next year. I'll be my teams only programmer, we don't have a programming mentor or anything (small team, just 15 or so guys and a teacher), and I'm trying to learn C++ enough to be able to code the robot in that instead of LabVu (since I'll need to know C++ for my career it'd be a lot better for me to get a good foundation now).
So with that said: when/why/what do YOU use pointers for the robot? Any/all details help

Also, are pointers/memory allocation with them related to how to save memory long-term? That's one thing I'm looking forward to -- writing a program where, for example, I can get a user input assigned to an integer, close the program, start it back up later and it remember what that value was
__________________
Team 3753 BulahBots

Last edited by ctccromer : 22-03-2012 at 09:29.