C++ Programming Tutorials

C++ Programming Tutorials And Articles
  Title / Author Replies Reverse Sort Order
Views
Programmers, meet a new tool to search for errors in source code of software written in C/C++. Within the scope of the PVS-Studio analyzer, we implemented a new set of general-purpose rules. This functionality is free for now. You may download PVS-Studio here...
0
3,183
Object oriented programming is a design philosophy. In programming paradigm, object oriented programming is the process by which a problem is decomposed into a number of entities called object and then data and functions are built around these objects. The main advantages of OOP are: ...
0
2,903
Being an experienced C/C++ developer, sometimes there are modules in which the code layer which interact with the system is written in C while the layer above it is written in C++. Have you ever thought of how these two layers (one written in C and other in C++) interact? What if we want to call a...
0
3,705
In C-Style typecasting we discussed about type casting and why is it required and how it is used in C programming. C++ has more types of typecasting and an entirely different way to use them. A point to be noted that C++ typecasting would be mostly described and used in context of classes, as...
0
2,834
We decided to write several small posts on how C/C++ programmers play with fire without knowing it. The first post will be devoted to an attempt to explicitly call a constructor. Programmers are lazy creatures. That's why they tend to solve a task using minimal code amount. This aim is...
0
2,948
I constantly study the Web regarding new articles on C/C++/C++11 programming. If I find them interesting, I post links to them in twitter @Code_Analysis, on Reddit /r/Viva64 and like them on StumbleUpon. If you are present on one of these websites, I invite you to follow me. You will find a lot of...
0
6,509
In C, memory allocations on heap are done using following three library methods void *malloc(size_t size); void *calloc(size_t nmemb, size_t size); void *realloc(void *ptr, size_t size); Though, most commonly used is malloc() The corresponding free-ing the memory...
0
2,845
LEVEL: BEGINNER, Test Environment: WinXP SP3 This is a demonstration of how Opengl32 with GPA can be applied an IAT HOOK to intercept functions in a process. In this case, it is about an EXE which uses some functions from Opengl32 to create a window and render an image. ...
0
7,573
This tutorial will give you a basic overview on two of the most fundamental concepts in every programming language: Arrays and Strings. We will individually explain what arrays and strings are, why they are important, how to deal with them and how we can use them to perform certain functions. ...
0
1,291
During programming, often times we come across situations where we are writing same lines of code again and again. For instance if you write a calculators programming, whenever user wants to calculate sum of two numbers, you will require corresponding statements performing addition. But in a...
0
1,143
If you are reading this tutorial on structures, you must be familiar with the basics of C++; you know what purpose do variables serve and what their different types are. If you are not familiar with variables and arrays in C++, I would suggest you to first learn these concepts in some of our other...
0
1,339
Object oriented programming or commonly known as OOP is an advanced programming concept. OOP principles form the basis of all the modern programming languages of today. When programming languages were at their inception stages, there was no concept of objects and classes and a simple program use to...
0
1,170
Inheritance is an extremely useful and exciting object oriented programming feature. Inheritance allows you to organize and reuse code effectively. Think of inheritance from a general perspective. Take your example; you inherit several characteristics from your parents. If your parents are tall,...
0
1,169
Programs you code reside in random access memory or commonly known as RAM. RAM is also known as volatile memory space. What happens is that when you run a program, your CPU selects corresponding files to execute from your hard drive and loads it into memory. A problem here arises that the data of...
0
2,521
Whenever you hear the word virtual, the first thing which comes to your mind is something that only exists in appearance but in reality you cannot physically see or touch that thing. A virtual function in C++ is a similar concept. Virtual functions lays at the heart of object oriented programming...
0
2,119
In my previous articles, I had introduces you to some of the fundamental concepts of the C++ language. However, you would have noticed that all the code we wrote, resided in a single file. We developed object oriented programs where we used multiple classes, but all those classes were in a single...
0
2,333
Multithreading is one of the most fascinating feature of modern day programming. If you are not familiar with multithreading then most probably you have been writing programs that are single threaded. By single threaded program we mean such a program where program instructions run in a sequence and...
0
3,096
Today I am going to explain another very important C++ concept: ’The Data Type Conversion in C++’. C++ has wide variety of data types ranging from the basic or primitive data types to the user defined data types. In this article, we are going to explain that how we convert these data types to...
0
6,915
In this article we are going to explain some of the most fundamental but often neglected concepts of C++ programming language. These concepts are extremely interesting and if employed well, can solve complex mathematical problems. So, without wasting any more time, let us jump to the first concept...
0
2,784
Making a Phone Book application in C++ is interesting; because it lets you learn the language practically. Making sample applications in any programming language is an interesting job. And this is perhaps the best approach to learning any programming language. As a programmer, your goal is to...
0
2,957