Mathematical Functions in C++

Similar Posts

  • Destructors in C++

    We’ve looked at Constructors in C++ to create an object, and building an object with new. However, what happens when we no longer need that object? That’s where a destructor is called. It is built into all objects, and if you don’t define one, a default one will be called for you. The destructor’s job…

  • Thinking in Objects

    Traditional procedural programming focuses on actions – functions. Object oriented programming focuses on data (objects) and the operations on objects. You want to look at items that you will be coding, and think, what makes this information up? and, What things can it do, and/or be done to it? Objects in the physical realm are…

  • Creating an Object

    Once you create your class, you need to create an object. The Class is just a blueprint for the program to follow. It doesn’t do anything until you create an object based off of that blueprint. Think of a house. If you have a house blueprint, all you have are some sheets of paper or…

  • For Loops in C++

    The for loop is the counting loop of C++. It is usually designed to run a specific number of times, and then end. With it, it keeps a counter, to let you know where in the loop you are – useful when looping through an array which will look at soon enough. The general form…

  • Break and Continue

    We’ve seen the break in a switch statement. It stops running the blocks of code, and simple exits out of the switch. In the same manner, if you use a break in a loop, it exits us from the loop prematurely (not by the loop condition). The continue keyword moves us to the end of…