|
|
Sanskruti
Introduction
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...
|
|
4 |
2,408 |
|
 |
d_arin100
Introduction
This article is about the slicing of object while sending the argument through a pass by value mechanism when using polymorphism.
Background
While we are using passing by address mechanism the address of the base class type as well as the derived class type are same in...
|
|
4 |
706 |
|
 |
Karpov2007
Abstract
Introduction
size_t type
ptrdiff_t type
Portability of size_t and ptrdiff_t
Safety of ptrdiff_t and size_t types in address arithmetic
Performance of code using ptrdiff_t and size_t
Code refactoring with the purpose of moving to ptrdiff_t and size_t
References
|
|
3 |
469 |
|
|
Mridula
Introduction
This article tries to cover all about Arrays like from it's definition till it's usage using a single dimension.
Background
Definition
An array is a built-in Data Structure that holds a sequence of variables of same data type, that are stored in a contiguous memory...
|
|
3 |
388 |
|
 |
adroit89
A Program to check whether entered matrix is symmetric or not.
#include<stdio.h>
#include<conio.h>
main()
{
int a,at,k,i,j,m,n;
clrscr();
printf("enter the order of matrix");
scanf("%d %d",&m,&n);
|
11-17-2009 07:56 AM
by kiddo
|
8 |
3,065 |
|
|
asadullah.ansari
I worked for a long time for this article. This program is tested on Sun-Solaris system using gcc compiler.
In market, there are a lot of tools for detecting the memory leaks. Here I made a program which has to include in your source file and it will tell the desired informations to find where...
|
|
40 |
15,075 |
|
|
Mridula
Introduction
This article talks about Multi-Dimensional Arrays in C/C++. About 1-Dimensional Array see All about Arrays in C/C++ - Part I
Background
Multi-Dimensional Arrays
Multi-dimensional arrays are nothing but Array of Arrays.
|
|
1 |
102 |
|
 |
dass
Linked Lists Implementation ...
#include<stdio.h>
#include<conio.h>
#include<malloc.h>
void insertafter(struct node ** ,int ,int);
void insertatbeg(struct node ** ,int );
void add(struct node ** ,int);
void search(struct node **,int);
|
|
10 |
3,187 |
|
 |
Karpov2007
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 |
487 |
|
|
asadullah.ansari
Introduction
After long day's discussion, bool was made as built-in type. Before it lot of other proposals came for bool. There were following proposals.
Proposal 1: bool can be implemented by typedef
typedef int bool ;
It works fine but problem is that if someone overloads functions...
|
|
4 |
1,237 |
|
|
asadullah.ansari
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 |
9,828 |
|
|
asadullah.ansari
Definition : Class which Can't be inherited by other class, that class is called final class.
You all knows that final class is inbuilt in java. But in C++ you have to create final class.Two types of Final class, you can create . One who want to create object of final class on Heap and other who...
|
|
3 |
3,122 |
|
 |
Shishir191
Sometimes its very difficult to understand which function would be call. So, this example explain you about how member functions are called while using virtual and without virtual.
1) Example of Virtual Function
In the case of virtual function when we call the member functions.The compiler...
|
|
3 |
3,231 |
|
 |
d_arin100
Introduction
The aim of this article is to explain the upcasting. Before going through this article I expect people have some preliminary idea about inheritance mechanism.
Background
The term upcasting comes from the class inheritance diagram. In the class inheritance diagram we...
|
|
6 |
639 |
|
 |
Mridula
Introduction
This artcile talks about Design By Contract Technique with an example to show how it can be used in an Application.
Background
Most application problems arise because of inappropriate handling of data obtained from external systems that could be a application user, remote...
|
11-12-2009 06:27 PM
by zim22
|
9 |
1,024 |
|
|
d_arin100
Introduction
This article explains what downcast are, how to make it safe, and so forth. However, before learning what downcast are, you must be familiar with polymorphism.
Background
Can you guess what is down-casting…yes it’s an opposite mechanism of up-casting. In upcast the...
|
|
2 |
704 |
|
 |
shabbir
InFix to PostFix
Introduction
Infix Expression :
Notation in which the operator separates its operands. Eg (a + b) * c. Infix notation requires the use of brackets to specify the order of evaluation.
Postfix Expression :
|
|
23 |
34,007 |
|
 |
Mridula
Introduction
This article talks about all different usage of const qualifier in C++.
Background
Declaration:
Named constant or const variables
|
|
14 |
1,519 |
|
 |
SaswatPadhi
Introduction
On 4th August, shabbir posted this question : (at the $1 Daily contest thread)
List a set of prime numbers where the sum total of the complete set is 100.
So, I thought why not generate try generating *all* such sets of primes, instead of *any* such set ? And, I sat down to...
|
|
5 |
909 |
|
 |
shabbir
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
...
|
|
7 |
3,936 |