CPP

315
3891 reads

February 20, 2013

Catching Exceptions with Base Class Handler


THe exception handler for base class also handles the exceptions thrown by derived / inherited classes, in much similar way.

63
9838 reads

February 20, 2013

Basic standard output


A simple C++ program to display the desired output.

23
1902 reads

February 20, 2013

Multiple case action


This example demonstrates multiple case options where same action applies if the letter is a vowel.

40
1630 reads

February 20, 2013

Multiple default Parameter values


This example demonstrates how to include default values for reference parameters of a function.

32
1702 reads

February 20, 2013

Reference Parameters


This example demonstrates how to pass parameters by reference.

32
1747 reads

February 20, 2013

Nested if statement


This program demonstrates the use of nested if statements. i.e. if within if.

36
1718 reads

February 20, 2013

Passing 2D array


This example demonstrates how to pass a two dimensional array to a function.

49
1669 reads

February 20, 2013

Array parameter as Pointers


This example depicts how an array can be passed in the form of pointer as a parameter to a function and how with the help of indirection operator (*) the values of this array will be accessed.

33
1766 reads

February 20, 2013

Simple if example


This program demonstrates the use of if statement to check whether an integer entered lies within a specific range, i.e., 50 to 100 or not.

32
1709 reads

February 20, 2013

Replacing words in a string


This example shows how to replace words in a string.