|
|
![]() |
|
|
2. Function overloading in C++
|
|
By: Babbar Ankit : 2009-05-30
|
|
Description: C++ permits the use of two function with the same name. However such functions essentially have different argument list. The difference can be in terms of number or type of arguments or both. |
|
Read the full article
|
|
5. Operator Precedence in C++
|
|
By: Kamini : 2007-09-17
|
|
Description: It is important to understand that operators have a precedence, but it is not essential to memorize the precedence. Use this table just in case you need a quick reference. |
|
Read the full article
|
|
6. How to handle Exceptions in C++
|
|
By: Lakshmi : 2007-09-17
|
|
Description: In C++, an exception is an object that is passed from the area of code where a problem occurs to the part of the code that is going to handle the problem. The type of the exception determines which area of code will handle the problem, and the contents of the object thrown, if any, may be used to provide feedback to the user. |
|
Read the full article
|
|
7. atoi(), itoa() in C++
|
|
By: Manoj Kumar : 2007-09-17
|
|
Description: The functions in stdlib you are likely to use most often include atoi(), itoa(), and the family of related functions. atoi() provides ASCII to integer conversion. atoi() takes a single argument: a pointer to a constant character string. It returns an integer (as you might expect). Listing below illustrates its use. |
|
Read the full article
|
|
8. qsort() sample program in C++
|
|
By: Norman Chap : 2007-09-17
|
|
Description: qsort() takes four arguments. The first is a pointer to the start of the table to be sorted (an array name works just fine), the second is the number of elements in the table, the third is the size of each element, and the fourth is a pointer to a comparison function. |
|
Read the full article
|
|
9. ctime() sample program in C++
|
|
By: Priya : 2007-09-17
|
|
Description: The standard library supplies the function time(), which takes a pointer to a time_t variable and fills it with the current time. It also provides ctime(), which takes the time_t variable filled by time() and returns an ASCII string that can be used for printing. If you need more control over the output, however, you can pass the time_t variable to local_time(), which will return a pointer to a tm structure. Listing below illustrates these various time functions. |
|
Read the full article
|
|
10. strcat() and strncat() sample program in C++
|
|
By: Reema sen : 2007-09-17
|
|
Description: Related to strcpy() and strncpy() are the standard functions strcat() and strncat(). The former concatenates one string to another; that is, it appends the string it takes as its second parameter to the end of the string it takes as its first parameter. strncat(), as you might expect, appends the first n characters of one string to the other. The sample program illustrates their use. |
|
Read the full article
|
Next
|
|
![]() |
|