From the course: C++ Best Practices for Developers
Unlock the full course today
Join today to access over 22,700 courses taught by industry experts or purchase this course individually.
File naming conventions - C++ Tutorial
From the course: C++ Best Practices for Developers
File naming conventions
- [Instructor] The state of the file-naming convention in C++ is unclear. Everyone pretty much agrees that the C++ code file should have the .cpp extension. But the two big movers in the C++ community, the ISO C++ Committee and the Boost Library Team, disagree on what the extension for header files should be. The style guide for each suggests a different extension. The committee prefers the .h and the Boost folks prefer .hpp. Either will work, since the compiler isn't choosy. I generally use the .h extension since it is the default for my editor.
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.