Chao8219 / cpp-example

An example of c++.
MIT License
0 stars 0 forks source link

Merry Christmas #1

Open kanishkegb opened 5 years ago

kanishkegb commented 5 years ago

I have few suggestions to improve this great code:

  1. use namespace std is a bad idea, don't be lazy, type std:: - Why is “using namespace std” considered bad practice?
  2. add a .gitignore file to your repository: I can see *.o, *.swp, and the compiled program uploaded to the repository, which should not be included in version control. This is an easier way to make a .gitignore file.

image

Chao8219 commented 5 years ago

Just saw this today! Thank you for the advices!