Advanced Selections in C++

Similar Posts

  • C++ Math

    C++ gives you a lot of ways to do math, built into the language directly. Unfortunately, it can get complex – so we’re going to focus on the simple stuff. The order of operation in C++ is the same as in algebra, so that is easy to remember. + is addition – is subtraction *…

  • An Introduction to C++

    A little bit of history C++ is an expansion of the C programming language. It’s main addition was the ability to create and use objects. That makes it an Object Oriented Programming (OOP) based language. You do not have to start with objects however, as it retains all of the C procedural language constructs and…

  • C++ Constructors

    Let’s look a little closer at constructors than we did in our initial Defining Classes for Objects example. Anytime you create an object, a constructor is called. If you overload your constructor, C++ will pick the right constructor to call, just like it does when you overload a function. Constructors must have the same name…

  • Formatting Output in C++

    Setting the precision of numeric data is a little more complicated in C++ than in some other languages.First you, will need to include iomanip as a library to use some of these modifiers. A common method is to pass in stream manipulators to the stream to get numbers for format correctly. Some of the modifiers…

  • Advanced Logic in Ruby

    In addition to the basic programming logic that Ruby has, it also has a few weirder forms of logic it can employ. Single Line Conditions Ruby allows for single line conditions where it is almost like a short hand. However, doing so may seem backward to normal logic, because the true block goes first. Consider…