Problem 8 fix and gitignore

Fixed problem 8, updated .gitignore so it wouldn't include compiled
files by C++

Will leave in .cbp files for other code::blocks users.