C++ Programming Tutorials

C++ Programming Tutorials And Articles
  Title / Author Replies
Views Reverse Sort Order
This simple program explain you about how to use BitMap in Turbo C++. NOTE :Before Running this program you have to copy one file in your "bgi" directory. That file either you have to download from the net or i will provide you. The file name is "SVGA256.BGI". Copy this file at your " tc\bgi\...
1) This Simple program explain one of the use of this pointer in C++. 2) With the help of "this" pointer you can call as many as functions in a sequence. 3) This procedure is called function chaining 4) In this program i have used three different function and through main i have called all...
When exceptions occur, the programmer has to decide a strategy according to which he would handle the exceptions. The strategies could be, displaying the error messages on the screen, or displaying a dialog box in case of a GUI environment, or requesting the user to supply better or simply...
This program shows how to create the private constructor in C++. #include<iostream.h> #include<conio.h> class Test { int Data; //Stores the Data
Original Non English Version here. For simple applications, it's enough just to rely on automatic memory management through local variables. But once the data become larger, it is no longer imperative to request memory from the heap and manage. Content Function Families Allocators ...
Introduction This article talks a little bit about Smart Pointer conepts and then move on to Reference Counting. Then there is a smaple code to implement the same. Background Smart pointer or auto-pointer is a simple wrapper around a regular pointer, provides all meaningful operations to...
It's a truly neutral question: given that there are many languages to choose from, why do you choose to program in C++? 1. Compared to many of the other OO languages (i.e. Java, C# etc.), C++ has better support for the functional programming style. 2. Good support for generic programming. ...
Annotation. Program errors occurring while porting C++ code from 32-bit platforms on 64-bit ones are observed. Examples of the incorrect code and the ways to correct it are given. Methods and means of the code analysis which allow to diagnose the errors discussed, are listed. This text is an...
We have all been using screensaver's since the time we first entered the world of computers. Everyone of us must have thought how one can make a screensaver of his/her own. Screensavers were originally meant to prevent damage to phosphorus coated computer screens. Now they are mostly used for...
This is just for a kind of information. Here I am going to explain how to make a class so that user can create object of it on free List( heap memory) or Stack. Example 1: Object should be created Only On Heap memory.Idea is that make constructor as private so that no one create on stack....
The misconception that C++ is an advance C still prevails among developers and so let me try to clarify that C++ only inherits some syntax from C and nothing more than that. Before I get into the details about the difference between C and C++ programming let me clarify a myth, which is, you need to...
Introduction This article explains about Callbacks and implmentation of it using below 3 different methods: Static Functions Non-Static or Member Functions Functor or Function Objects. Background
This article is to explain in brief how Visual C++ is handling exceptions Abnormal situations should be handled by throwing and catching exceptions. Such situations are not the same as normal error conditions, such as a function executing correctly, but returning a result code indicating an...
Here i am going to show you some basic C++ Programming... If you have any questions just ask. :) #include <cstdlib> // This must be used if you are going to be a MS-DOS Application. #include <iostream> // This must be included in the header file if you are going to use "Cout" and "Cin"...
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...
Background I happen to manage many sites this days and so at times I need to upload lots of things to my servers and when uploading from windows PC to Linux servers the biggest problem that comes up is the case sensitive issues and so I tried googling it but what I found are some cool utilities...
In c++ you would have heard about famous Dreaded Diamond problem, where a class appears more than once in the inheritance hierarchy. for eg: #include <iostream> using namespace std; class A { public: int data; };
Virtual Destructor Virtual Destructor is used to release the derived class objects in a proper order.... Consider an Example: #include<iostream.h> class Base
Introduction This talks about Virtual Friend Function in C++. Background Friend functions are not in-herited in C++. So, to achieve dynamic binding with friend functions, we have to make the interfaces as virtual (make it as protected part of class) to operate within the friend function....
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. ...