The New Operator; Allocating Memory in C++ 
The New Operator; Allocating Memory in C++
by John Purcell
Video Lecture 46 of 78
Not yet rated
Views: 826
Date Added: July 3, 2016

Lecture Description

One of the reasons that C++ is so create is that it allows you to careful manage your program's memory requirements. The "new" operator in C++ enables you to allocate however much memory you need. We'll start looking at it in this tutorial.

Course Index

  1. Introduction to C++ Programming
  2. Installation
  3. Hello World
  4. Outputting Text
  5. Variables
  6. Strings
  7. User Input
  8. Binary Numbers and Memory
  9. Integer Variable Types
  10. Floating Point Variable Types
  11. Char and Bool
  12. The "If" Statement
  13. If-Else
  14. Choosing Between Alternatives: If-ElseIf-Else
  15. - Complex Conditions
  16. "While" Loops
  17. The Do-While Loops
  18. "For" Loops
  19. Break and Continue
  20. Arrays
  21. Multidimensional Arrays
  22. Sizeof and Arrays
  23. Sizeof Multidimensional Arrays
  24. Switch: Choosing Between Alternatives
  25. Functions: Using Subroutines in C++
  26. Return Values: Getting Data From Subroutines
  27. - Function Parameters: Passing Data to Subroutines
  28. Headers and Prototypes
  29. Classes: The Foundation of Object-Oriented (OO) Programming
  30. Data Members, a.k.a. Instance Variables
  31. Constructors and Destructors
  32. Getters and Setters
  33. String Streams; Adding Number to Strings
  34. Overloading Constructors
  35. The "this" Keyword; A First Taste of Pointers
  36. Constructor Initialization Lists
  37. Pointers; Where C++ Starts to Get Tricky
  38. Arithmetic Operators
  39. Pointers and Arrays
  40. Pointer Arithmetic; Adding, Subtracting and Comparing Pointers
  41. Char Arrays: Primitive Strings in C++
  42. Reversing a String (Interview Question!)
  43. References; Nicer than Pointers!
  44. Const; a Vital Tool for Reducing Bugs
  45. Copy Constructors; Creating Copies of Objects
  46. The New Operator; Allocating Memory in C++
  47. Returning Objects from Functions
  48. Allocating Memory
  49. Arrays and Functions
  50. Namespaces; Organise Your Classes
  51. Inheritance
  52. Encapsulation
  53. Constructor Inheritance
  54. Twos Complement
  55. Static Variables
  56. Particle Fire Explosion
  57. Using C++ Libraries
  58. Aquiring Simple Direct Media Layer
  59. A Basic SDL Program
  60. Creating an SDL Window
  61. Textures, Renderers and Buffers
  62. Setting Pixel Colors
  63. Creating the Screen Class
  64. Bit Shifting and Colors
  65. Adding a Set Pixel Method
  66. Animating Colors
  67. Creating Particles (Starfields!)
  68. Animating Particles
  69. Creating an Explosion
  70. Ensuring Constant Speed
  71. Biwise "And"
  72. Implementing Box Blur
  73. Realistic Particle Motion
  74. Languages Overview
  75. What Next
  76. Object Oriented Design Considerations
  77. Understanding Postfix and Prefix
  78. Static Creating Libraries

Course Description

Your instructor John Purcell offers a friendly introduction to programming with the C++ language.


There are no comments. Be the first to post one.
  Post comment as a guest user.
Click to login or register:
Your name:
Your email:
(will not appear)
Your comment:
(max. 1000 characters)
Are you human? (Sorry)