C++ Tutorials

21. C++ keywords

By: Stanley B. : 2011-02-19

Description: C++ reserves a set of words for use within the language as keywords. Keywords may not be used as program identifiers. Table 1 below lists the complete set of C++ keywords.


22. Uninitialized Variables Cause Run-Time Problems in C++

By: Stanley B. : 2011-02-19

Description: Using an uninitialized object is a common program error, and one that is often difficult to uncover. The compiler is not required to detect a use of an uninitialized variable, although many will warn about at least some uses of uninitialized variables. However, no compiler can detect all uses of uninitialized variables.


23. Declarations and Definitions in C++

By: Stanley B. : 2011-02-19

Description: C++ programs typically are composed of many files. In order for multiple files to access the same variable, C++ distinguishes between declarations and definitions.


24. typedef in C++

By: Stanley B. : 2011-02-19

Description: A typedef definition begins with the keyword typedef, followed by the data type and identifier. The identifier, or typedef name, does not introduce a new type but rather a synonym for the existing data type. A typedef name can appear anywhere in a program that a type name can appear.


25. Sum of 1 to N in C++

By: Grant Braught : 2011-01-27

Description: This sample C++ program accepts a number and prints the sum of all numbers from 1 to the entered number.


26. Vector variables in C++

By: Grant Braught : 2011-01-27

Description: This sample C++ program makes use of Vector Variables to implement a selection sort.


27. Reverse a String in C++

By: Grant Braught : 2011-01-27

Description: This sample C++ program reverses a String and at the same time demonstrates the Pass by Reference parameters in C++ functions.


28. Pass by Reference vs Pass Value in C++ functions

By: Grant Braught : 2011-01-27

Description: This sample C++ program, demonstrates the difference of Pass by Reference and Pass by Value parameters in C++ functions.


29. Pass by Reference in C++ functions

By: Grant Braught : 2011-01-27

Description: This sample C++ program, demonstrates Pass by Reference functions.


30. Checking Prime Number in C++

By: Grant Braught : 2011-01-27

Description: This sample C++ program, simply accespt a number and indicates whether it is a Prime number or not a prime number.