Multiple Files are easy to follow
3 posters
CMPC :: Computing :: Programming :: General Coding
Page 1 of 1
Multiple Files are easy to follow
Instead of having everything jumbled up into the main cpp file, it's always best to separate your code throughout multiple header and source files. And also don't forget to name them appropriately! That way they're easy to find, easy to read, and just a lot cleaner.
Admin- Pirate King
- Posts : 559
Re: Multiple Files are easy to follow
It's true that separating code into files based on what the code does helps in organization and neatness.
So if you have a bunch of type conversion functions written for a specific project put the in an appropriatly named header file and include them in your project.
So if you have a bunch of type conversion functions written for a specific project put the in an appropriatly named header file and include them in your project.
Paul- Pickaxe
- Posts : 611
Re: Multiple Files are easy to follow
It's also helpful if you have a piece of code that can be reused in other applications. Then you can just include the file again.
Corey- Mod
- Posts : 462
Similar topics
» Making 3d or 2d games the EASY way
» Null files
» Be aware of encrypted files
» Source and Header Files
» Null files
» Be aware of encrypted files
» Source and Header Files
CMPC :: Computing :: Programming :: General Coding
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum