Category: Tutorials
Strings in C++
Posted by M. Saqib | Sep 10, 2008 | C++ Programming: Different Articles on C++ Programming |
The Standard C++ Library
Posted by M. Saqib | Sep 10, 2008 | C++ Programming: Different Articles on C++ Programming |
The 1998 C++ standard consists of two parts: the core language and the C++ standard library; the latter includes most of the Standard Template Library and a slightly modified version of the C standard library. Many C++ libraries...
Read MoreA Guide to Advanced Exception Handling in C++ Programming
Posted by M. Saqib | Sep 10, 2008 | C++ Programming: Different Articles on C++ Programming |
An exception usually signals an error. One of the major features in C++ is exception handling, which is a better way of thinking about and handling errors. Thought it doesn’t always indicate an error, it can also signal some particularly unusual even in your program that deserves special attention. This article also covers try, throw, and catch, the C++ keywords that support exception handling.
Read MoreConditional Statements – if else, for and while loop in C
Posted by M. Saqib | Sep 10, 2008 | C Programming: Different Articles on C Programming |
C programs are executed in a sequence, but we can control the execution of program by using any control mechanism by which we can compare things and come to a decision. This involves using some operations called Relational Operators, conditional statements called if-else and loops. We have fundamental operators to compare two values.
Read MoreInput and Output in C
Posted by M. Saqib | Sep 10, 2008 | C Programming: Different Articles on C Programming |
The standard way of handling all input and output is done with streams in C programming regardless of where input is coming from or where output is going to. This approach has definite advantages for the programmer. A library package has been evolved which is known as known as the Standard I/O Library which is used in any C program by using stdio.h header. First, however, we need to understand exactly what the terms input and output mean in context of C.
Read MoreFunctions in C Programming
Posted by M. Saqib | Sep 10, 2008 | C Programming: Different Articles on C Programming |
Function groups a number of program statements into a unit and gives it a name. This unit can be invoked from other parts of a program. A computer program cannot handle all the tasks by it self. Instead its requests other program like entities – called functions in C – to get its tasks done. A function is a self contained, named block of statements that perform a coherent task of same kind. The name of the function is unique in a C Program and is Global. It means that a function can be accessed from any location with in a C Program.
Read MoreArrays in C
Posted by M. Saqib | Sep 10, 2008 | C Programming: Different Articles on C Programming |
In C Programming, an array can be defined as number of memory locations, each of which can store the same data type and which can be referenced through the same variable name. Arrays can be of two types i.e. One Dimensional Array (such as lists) and Multidimensional Arrays (such as tables or matrices).
Read More