added .gitignore

C++ gitignore added from https://github.com/github/gitignore
Gitignore corrected

from https://github.com/github/gitignore/blob/master/C%2B%2B.gitignore