

Advertisment

Arrays within a class - C++
1. Stream Classes - used to define various stream to deal with both console and disk files. 2. Stream classes are console operations are declared...
Views: 767 |
| by Marry
C and Cpp - Introduction to C and Cpp

Detecting End-of-file - C++
Detection of End-of-file condition is necessary for preventing any further attempt to read data from the file.
Views: 989 |
| by Daniel
C and Cpp - File Manipulation

The for loop - C++
The general format of the for loop is shown in the figure, expl is an assignment expression that is used for initializing a loop index.
Views: 684 |
| by Daniel
C and Cpp - Introduction to C and Cpp

Pointers to objects - C++
A pointer can point to an object of a class. Consider a class emp, which is defined as shown.
Views: 694 |
| by Amy
C and Cpp - Introduction to C and Cpp

Function overloading - C++
In function overloading, the function is said to be overloaded when same name is given to different functions.
Views: 750 |
| by Jason
C and Cpp - Introduction to C and Cpp

Virtual base classes - C++
Consider a situation, where all the three kinds of inheritance namely multiple, multilevel and hybrid inheritance are involved as shown in the figure.
Views: 791 |
| by Troy
C and Cpp - Introduction to C and Cpp

Conversions - C++
The table depicts the usage ofeitherthe casting operator or constructor function depending upon the conversion required.
Views: 700 |
| by Mark
C and Cpp - Introduction to C and Cpp

Functions in C++
A function is a self-contained block of statements that performs a coherent task whenever it is called.
Views: 692 |
| by Troy
C and Cpp - Introduction to C and Cpp

Stream class hierarchy - C++
The figure shows the hierarchy of the classes used for input and output operations with console and file, ios stream is the base class for istream...
Views: 695 |
| by Stephen
C and Cpp - Introduction to C and Cpp

Strings - C++
A group of integers stored in the memory is called an integer array. Similarly, a group of characters form a character array.
Views: 681 |
| by Donald
C and Cpp - Introduction to C and Cpp

Implementing associative arrays in C/C++
This article demonstrates using string/char* indexes in regular C array, e.g. myArray['age']=10; We usually use numaric indexes in...
Views: 761 |
| by Troy
C and Cpp - Programming in C and Cpp

Using vector instead of arrays to prevent most of memory leaks
Most of beginners define arrays of limited size such as: int array[100]; // array that can accomodate 100 integer values These are ok, but your...
Views: 673 |
| by David
C and Cpp - Programming in C and Cpp

5 Top Mistakes Software Developers Make
Five mistakes all developers and programmers most commonly make. Inserting programs into startup, having no pause button.
Views: 1041 |
| by David
C and Cpp - Miscellaneous

ERRORS - C++
File stream inherits a stream state member from the class ios. The stream state member records information on the status of a file that is...
Views: 734 |
| by Adam
C and Cpp - Introduction to C and Cpp

Dynamic Binding - C++
Binding refers to the linking of a function call to the code to be executed in response to the call.
Views: 729 |
| by Colin
C and Cpp - Introduction to C and Cpp

The do while statement - C++
Unlike for and while loops, which tests the loop condition atthe top of the loop, the do-while loop checks the condition at the bottom of the loop,...
Views: 664 |
| by Isac
C and Cpp - Introduction to C and Cpp

bject Oriented Programming Vs Procedure oriented programming - C++
The Table gives a comparison of Object Oriented Programming and Procedure Oriented Programming.
Views: 664 |
| by Jason
C and Cpp - Introduction to C and Cpp

This pointer - C++
C++ uses the keyword this to point to the object, which invokes the member function. For instance, if class emp has a member function called...
Views: 686 |
| by Jason
C and Cpp - Introduction to C and Cpp

Exception Handling - C++
Exception handling allows you to manage run-time errors in an orderly fashion.
Views: 629 |
| by Jason
C and Cpp - Introduction to C and Cpp

Stream and file handling - C++
The C file system is designed to work with a wide variety of devices, including terminals, disk drives and tape drives.
Views: 679 |
| by John
C and Cpp - Introduction to C and Cpp

Most popular (last 7 days)





Highest rated (last 7 days)




