Operator Overloading

Similar Posts

  • Pointer Basics in C++

    A Pointer variable, just called a pointer, holds the memory address of data that is stored. Through the pointer, you can read the address, and thus indirectly access the value of the variable. To access a value, you use the dereference operators (*) to get the value stored at that memory address. To store a…

  • The Vector Class

    Using arrays to store a collection of variables, even objects, if very beneficial. However, it does have some limitations given that arrays are of a fixed size, and cannot shrink or grow with use. This means you either run out of space after a set of time, or you waste a lot of space as…

  • Inline Functions in C++

    Calling a function has a performance penalty because you have to create variables, specify scope, pause the current variables and push data onto the call stack, just to name a few reasons. C++ allows you to define an inline function, which should be short, to improve the performance. In doing so, the compiler will actually…

  • A Sample C++ Program

    Let’s look at a simple program and work through it step by step. #include #include statements are at the top of the file, and let you include any libraries you might need. iostream, in our example is used to help process input and output. You might think this is standard, but if you are building…

One Comment

Comments are closed.