add extension .cc for c++
Merge pull request #981 from cjxgm/patch-1

add extension .cc for c++