C++ Programming Tutorials

C++ Programming Tutorials And Articles
  Title / Author Replies
Views
Casts are used to convert the type of an object, expression, function argument, or return value to that of another type. Some conversions are performed automatically by the compiler without intervention by the programmer. These conversions are called implicit conversions. The standard C++...
5
12,054
Abstract Introduction Building of the 64-bit version of Loki in Microsoft Visual Studio 2005 Testing of the 64-bit Loki version with the help of Viva64 Incorrectly used constant LONG_MIN Some types of magic numbers - errors or not? Addition of int to a pointer as a potential error Using...
2
2,464
Originally written by Zeeshan Amjad Assumption: 32-bit Machine. Here I am going to explain How Virtual table, Virtual pointer for Virtual functions are internally working. First we have understand memory layout. Example 1: How the class's memory layout class Test
48
31,352
Abstract Introduction The first step 64-bit mode can be different. Let's sort it out The second step. Find out if you need the 64-bit version of your product Applications' life-cycle duration Resource-intensiveness of an application Development of libraries Dependence of your product...
1
2,914
Abstract Introduction Analysis of program code Examples of incorrect and vulnerable code Diagnosis of vulnerabilities in 64-bit code Conclusion References Abstract
1
2,310
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
1
8,430
Introduction This article talks about ASSERTs usage and customizing our own ASSERTs. Background Asserts are to catch implementation errors. The developer can document all the assumptions made on the his/her program, by using ASSERTs. If you have used asserts in your code and if it...
8
12,835
Introduction Code for LinkList in C++ The code #include "LinkedList.h" /** * Construct the list
4
33,257
Introduction List out all of the installed Windows Services In C++ The code #include <windows.h> #include <iostream.h> void ErrorDescription(DWORD p_dwError);
1
6,018
Introduction This article talks about Static in C++. Background Static Variables: 1. All static variables are stored in Data Segement.
6
5,038
Introduction Exception handling is a mechanism when a part of code detects exceptional suituation, it seperates the code where it detects and handles it seperately. This mechanism can be done differently in C and C++, ie eigther using setjmp()&longjmp() or Exception in c++ try/catch(...). ...
3
4,627
Introduction Many times you may have wondered how to return several values from a C++ function. I know it's easy for most of you when you know "how many" values your func is going to return. I have seen many people use std::pair to return two values from a func. But what about the case when you...
1
3,156
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"...
20
7,630
Introduction This article talks about size of a class with all possible scenarios like having simple data (with and without structure padding), virtual functions, Replicated and Shared Multiple Inheritance etc. Background Size of a class object is nothing but it's non-static member data +...
7
36,372
Introduction Code for solving system of equation by Gaussian elimination method. The Code is well commented and would not need any further explanation The code #include <stdio.h> #include <conio.h> #define N 100
10
12,967
Introduction Lagranges interpolation formula The code #include <stdio.h> #include <conio.h> #define N 100
7
5,561
Introduction Gauss-siedel method to solve system of equations :undecided The code #include <stdio.h> #include <conio.h> #include <math.h>
3
3,935
Abstract Introduction 1. Potential errors 2. How it all begun 3. Phantoms 4. Diagnosis of potential errors Conclusion References
1
2,997
Introduction This article talks about Virtual Table and _vptr in Replicated Multiple Inheritance and in Virtual Base Class (or Shared Multiple Inheritance). Here it is explained using an example: In this example, we have Base1, Base2, Base3 and Derive classes, where Base2 and Base3 classes...
4
5,579
Introduction This article talks about Handle-Body pattern and it's uses. Background Though, C++ provides private and public access specifiers to differntiate implementation and interface parts of a class, down the line any changes to the private data or member functions implementation...
6
12,224