Join Peggy Fisher for an in-depth discussion in this video Pointers, part of Learning C++ (2014).
…Every piece of data can be found, using an…address to the location, where it is stored in memory.…A pointer is a dated type in C++, that contains the address of a value in memory.…Pointers can be used to share values among different parts of a program.…Here in my example, I'm defining an integer variable, John's…account, and giving it the value 1, 2, 3 ,4 ,5.…Right below that, I'm declaring a pointer.…Notice the asterisk after the data type, that tells the computer this is a pointer,…i have int* acctPtr, for account pointer, is equal to, &JohnsAcct.…
Remember the ampersand finds the address where…John's account, is actually store in memory.…I now have that value in my pointer.…In lines 15 and 16, I'm printing out…John's account, number using the variable, Johns account,…also, I'm printing out the value of where…that is located in memory, using my pointer.…Below that, I'm actually using the account pointer, to print out the value.…The way that you print out a value, using a pointer, is you dereference the pointer.…
- Downloading and exploring the C++ IDE
- Working with loops
- Using predefined functions
- Creating custom functions
- Creating and instantiating classes
- Working with external files
Skill Level Beginner
Q: How do I upgrade the C++ compiler on Mac OS X and Linux?
A: Refer to C/C++ Essential Training for a detailed look at installing or upgrading the C++ compiler on various platforms.
Q: The link to download the Eclipse IDE in the "Download a C++ IDE" movie doesn't work. Where can I find the IDE?
A: Short URLs are case sensitive and need to be typed in exactly as they appear. Type in or simply click http://goo.gl/CzckWp to visit the Eclipse IDE for C/C++ Developers page.
1. Getting Started
2. C++ Basics
3. Flow of Control
4. Classes and Objects
5. Data Structures
6. File Manipulation
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.