CPP

35
1625 reads

February 23, 2013

Overloaded function template


Function templates are special functions that can operate with generic types.

23
1655 reads

February 22, 2013

Function template-II


Function templates are special functions that can operate with generic types.

36
1585 reads

February 22, 2013

Template specialization


Function templates are special functions that can operate with generic types.

24
1667 reads

February 22, 2013

Template creation


Function templates are special functions that can operate with generic types.

45
1841 reads

February 22, 2013

LinkedLists


This example demonstrates the implementation of a linked list of Box objects.
29
1752 reads

February 22, 2013

Switch statement


C++ has a built-in multiple-branch selection statement, called switch, which
successively tests the value of an expression against a list of integer or character constants.

22
1639 reads

February 22, 2013

Conditional operator


This program demonstrates the working of Ternary/Conditional operator. This operator can often be used to replace if-else in some situations.

22
1665 reads

February 22, 2013

Average with template arrays file


In this example, average has been calculated using template arrays.

39
1755 reads

February 22, 2013

Average using template iterators


In this example, average has been calculated using template iterators.

38
1677 reads

February 22, 2013

Combining logical operators


Logical operators can be combined to enable multiple checks in a single statement. The whole expression is evaluated.