Saturday, March 10, 2012

typedef in C++

typedef: We can define our own type and it in the program.

syntax: typedef existing_type new_type_name ;

For example:
typedef int number;
typedef char* pchar;
typedef double[10] dblenum;

Now we can use them as follows
number a;
pchar ptch2;
dblenum money;

When to use it:
- Can be used as alias of frequent used types
- also useful when change type later version
- Shorter name of long and confusing name

Thursday, March 8, 2012

C++ Books and References

Top 5 books



Top 5 Sites for Tutorials


Top 5 Slide Tutorials
  1. C++ Program Design: Third Edition Resources


Top 5 Area to improve:

Variable

  • · Initialize variables
  • · Null pointer Exceptions

Pointer

Class

  • Abstract class
  • Inheritance
  • Polymorphism
  • Overloading/Overriding
  • Virtual function
  • Pure virtual Function
Threading

Tuesday, November 8, 2011