User profile: kannanmj

User info
User name:kannanmj
Name:Kannan.M.J
Location:Bangalore, India
Bio:Working in Hewlett-Packard.
Statistical data
Gender:Male
Occupation:Programmer
Skills:C
C++
History
Joined:
Number of posts:59
Latest posts:

nested if-else statements
[code]switch(packageType) { case 'A': ... break; case 'B': ... break; case 'C'...

Virtual Functions!
Refer to http://www.cplusplus.com/doc/tutorial/polymorphism/. Given examples in this page is simple ...

rty
[code]#include <iostream> #include <string> #define MAX_SIZE 20 std::string addLargeNumbers(const ...

Modifying a program for adjacent triplets in C
[code]int cmp_3_elements(int *iptr) { if ((iptr[0] == iptr[1]) && (iptr[1] == iptr[2])) return 1; ...

Initializing const data member
[code]class a_class { private: const int idm; public: a_class() : idm(0){} a_class(i...