C++ Programming Tutorials

C++ Programming Tutorials And Articles
  Title / Author Replies
Views
This is a basic attempt to accomplish this, there is already a real big load of code about this matter... I wanted to use a different approach, I created 1 table that contains all the 256 bytes, and i used it to make the conversion.. you look at the code, better The tables ...
0
2,432
After a long wait C++Builder XE3 Update 1 has finally acquired the capability of building 64-bit applications. It means that developers using this tool will soon face the yet unfamiliar world of 64-bit errors. What is a 64-bit error? This is just a common error in a program. But it has one...
0
2,137
Introduction This article talks about how virtual table or vtable and _vptr works, with a pictorial representation. Background Virtual Table is a lookup table of function pointers used to dynamically bind the virtual functions to objects at runtime. It is not intended to be used directly...
16
48,079
In part I of the article about Virtual Functions, we learnt about the virtual functions, why are they needed and when to use them. This article will talk about virtual function internals and how virtual functions work in C++. Actually, virtual functions govern to an extent, how a class object is...
0
2,431
Virtual functions in C++ play an important role. To understand virtual function, one should be clear about the polymorphism feature of C++ language as an object oriented language. In brevity, polymorphism is the weapon through which we can identify a function call through its parameters, or...
0
2,637
Introduction This article talks about Initialization List in C++. Background Definition: Initialization List is another or a better approach for initializing the member variables (and base class objects) of a class upon construction of an instance of it's own.
6
13,551
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,846
Talks about what is function hiding and reason behind it. Background In the example given below you would notice that the func() method has different signatures in the base and derived class. Thus its neither a case of function over-riding (which needs same function signature in base and...
3
6,921
Steps to integrate code into your programs This is an easy and flexible way to use bitmaps as buttons in your application, and here are the detail steps of how you can add the custom button to your application. Create a new MFC AppWizard (exe) based project and name it as BtnSample ...
21
18,199
This article talks about Association, Aggregation and Composition Relationships between classes with some C++ examples. Background Association is a simple structural connection or channel between classes and is a relationship where all objects have their own lifecycle and there is no owner. ...
8
106,397
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,511
From the Bubble sort it was obvious that the sorting isn't efficient for larger list, even for a list more than 100 numbers . So there's another lot of sorting algorithms out there and this is just one of them Selection Sort Once you see the way Selection sort works, you'll wonder why one...
1
5,534
Had to have some days break off . So, lets move on, this time a little than practicals, but again these are more than important in solving the problems in the real world. As I said that will explain more about the different types of the data structures while we move on, here I'll explain 3 of the...
3
13,645
After having so many articles on Linked List Basic operations in Linked List Swap two nodes of a linked list Move forward a node in linked list Insert a node in a linked list Double linked list Double circular linked list Circular linked list Priority Queue implementation using Linked...
13
75,187
Oracle C++ Call Interface (OCCI) is an Application Programming Interface (API) that provides C++ applications access to data in an Oracle database. This API is a significant improvement to the Oracle Call Interface (OCI) API as far as ease of use is concerned. Engineers who have written JDBC (Java...
40
61,304
Just thought of having a simple example which has everything you need to know about the basics of C++. It has Inheritance, polymorphism, operator overloading, templates using friend as well as non-friend functions. #include <iostream> using namespace std; template <typename T> class Base {...
12
26,326
Insertion Sort like Bubble Sort & Selection Sort also uses the Array data structure. So let's see about the insertion sort, again a not-so-good sorting with some of uses of its kind and move onto a whole new brand of algorithms. Insertion Sort Like most of the sorting algorithms, this too has...
3
10,161
I thought of starting the whole algorithm series with the most popular Sorting algorithms. Sorting as you know is a way to order a list or a sequence or elements. ex: Arranging set of marks to ascending order Arranging names to alphabetical order Why learn Sorting when sort() is readily...
5
16,482
A virtual function is used where we want to allow the derived class to replace the implementation of the same function in base class. The compiler always calls the derived class function when called with object of the derived class or an object of base class holding the address of the derived class...
2
5,560
Pointers and Reference looks similar but there are some difference between both of them. POINTER Its not necessary to initialize the pointer at the time of declaration. Like int a = 10; int *P = &a; //It is not necessary Another way is :
33
90,925