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...