Home Programming

Programming

Const Correctness in C++

One of the biggest advantages of programming in C++ is that you can do the same thing in a variety of ways. At least, in theory, the compiler lets you do this. Under these circumstances, the difference between a good programmer and a very good programmer lies in the...

Programming MSFlexGrid in MFC (VC++)

Representation of data is one of the central aspects of any application. Tabular representation of data is the most common method of representing given data. Each language/framework provides its own technique, in the form of controls, to present data in tabular format. MFC (Microsoft Foundation Classes) is no exception....

File Handling and Streams in C++

Writing more advanced code in C/C++ might not always be a trivial task. Due to this, you might have to run an application several times before you manage to eliminate all of its problems. Now with most applications, some input is required at a basic level at least. The quantity of required...

Advanced File Handling with Streams in C++

From time to time, I will not use streams, as I sometimes prefer the console output, although, as you may know already, that also is handled like a file, so every trick that works on the console IO will compile and run just as well on files. For this article,...

Serialize Your Class into Streams in C++

So you started learning to code in C++. You know how to create a class, learned the golden rule that a "deconstructor" will always exist, and have decided that it's time to learn about streams. What a great tool to use if you know what it is all about. I assume you...

General Stream Manipulation in C++

If you've programmed in C already and used the “scanf” function, you already know what I am talking about here. Writing a float value on the screen with two digits of precision after the decimal point is done on the fly. A strong library such as C++ must have something...

Preparing For Programming Contests

This is the second part of the four-part series article I began here on Dev Articles. The first one also appeared here and tried to elucidate the mystery of why we should bother even to participate in something like this. If you failed to catch it when it originally appeared, you are free...