Category Archives: c++

Classes in C++

If you’ve been following this blog, then you know I just wrote an article about passing objects as arguments in C++. This article was originally intended to be part of that one. But while writing it, I realized that you … Continue reading

Posted in c++, Programming | Leave a comment

Like Bigger Stones: Argument Passing in C++, Part 2

In my previous article, I talked about how C++ handles parameter passing when the arguments are primitive types or arrays. This article will talk about passing objects in C++. Objects are more complicated than primitives or arrays, so as you … Continue reading

Posted in c++, Programming | Leave a comment

Like Stones: Argument Passing in C++, Part 1

For people new to C++, argument passing can be very hard to understand. Most programming languages handle argument passing “behind the scenes” somehow. Either there is really one form of argument passing (e.g. C), or your choices are determined for … Continue reading

Posted in c++, Programming | Tagged , | 1 Comment

Breaking cin for fun and profit

This post was originally written for students in Bunker Hill’s CIT 120 course. Breaking the cin object for validation As you should know, cin is an object. Specifically, it is an object of type istream (or, an instance of the … Continue reading

Posted in c++, Programming | Tagged , | Leave a comment

A beginner’s guide to function design in C/C++

This post was originally written for students in Bunker Hill’s CIT 120 course. Quite a few beginning CS students have trouble with function design. They know the syntax of functions, how to write headers, etc.; but they’re having trouble actually … Continue reading

Posted in c++, Programming | Tagged , | Leave a comment