Skip to content

janderkkotlarski/correct_cpp_hello

 
 

Repository files navigation

correct_cpp_hello

Branch Travis CI Codecov
master Build Status codecov.io

Correct C++ chapter 'Hello'.

Goal

Prerequisites

Exercise

Write any program that is correct.

Feel free to just copy-paste this code to main.cpp:

/// This program does exactly nothing
int main() {}

Note the ///, which indicates a Doxygen documentation comment.

This is how this course works:

  1. Login to GitHub
  2. Fork this repository. See fork a chapter for help
  3. Clone your fork. See clone your fork for help
  4. Activate Travis CI for your GitHub. See activate for help
  5. On your local code, modify the README.md. See modify README for help
  6. On your local code, do the exercise. See do the exercise for help
  7. Push your code. See push your code for help
  8. Travis will now correct your GitHub. If you did everything correctly, the build status of your fork will become green. Well done! Else, click on the red build status badge to view the Travis CI log

Your code must be correct, thus your code must:

External links

References

  • [1] Herb Sutter, Andrei Alexandrescu. C++ coding standards: 101 rules, guidelines, and best practices. ISBN: 0-32-111358-6. Item 1: 'Compile cleanly at high warning levels'.
  • [2] Linus Torvalds. Re:[PATCH] Don't compare unsigned variable for <0 in sys_prctl(). 2006-11-28. Retrieved on 2010-09-20. 'Friends don't let friends use [gcc] "-W"'
  • [3] John Lakos. Large-Scale C++ Software Design. 1996. ISBN: 0-201-63362-0. Chapter 2.6: 'Document the interfaces so that they are usable by others. Have at least one other developer review each interface'
  • [4] Steve McConnell. Rapid Development. 1997. ISBN: 978-1-55615-900-8. Page 534: Create good documentation

Packages

No packages published

Languages

  • QMake 96.2%
  • C++ 3.8%