Removed namespace-directive, and changed indentation.
Const correctness.
Spacing updated.
Removed superfluous blocks.
Removed all comments.

Clean code!!
Improved usage of size_t.
Preincrement is more fundamental than postincrement.
Removed std::endl.
Two todos.
Ignoring backup-files.
Converted tabs to spaces.