Using C++ While Loops to Read a File

Similar Posts

  • Overloading a Function

    Overloading a function means that you can create different functions with the same name, as long as their signatures are different. That means that the parameter list must be of a different number and/or data types from one to another. Overloading functions can make reading code much clearer/easier. This way functions that perform the same…

  • Review of C/C++

    C and C++ are high-level programming languages that are widely used for developing system software and application software. They were developed to handle a wide variety of applications and meant to be cross platform compatible, so you only have to recompile your code on the new operating system for it to work. Of course, if…

  • Data Field Encapsulation

    Previously we looked at a class Circle, which had a property radius that was publicly available. That means that any other class, or your main program could change that value. This is a problem for two reasons: First, that data could be tampered with. Another function, class, etc could directly access the variable and change…

  • 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…