CMPC
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Multiple Files are easy to follow

3 posters

Go down

Multiple Files are easy to follow Empty Multiple Files are easy to follow

Post by Admin Sun Jan 03, 2010 6:34 am

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
Admin
Pirate King

Posts : 559

Back to top Go down

Multiple Files are easy to follow Empty Re: Multiple Files are easy to follow

Post by Corey Sun Jan 03, 2010 7:44 pm

-like-
Corey
Corey
Mod

Posts : 462

Back to top Go down

Multiple Files are easy to follow Empty Re: Multiple Files are easy to follow

Post by Paul Sun Jan 03, 2010 11:18 pm

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.
Paul
Paul
Pickaxe

Posts : 611

Back to top Go down

Multiple Files are easy to follow Empty Re: Multiple Files are easy to follow

Post by Corey Mon Jan 04, 2010 10:44 pm

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
Corey
Mod

Posts : 462

Back to top Go down

Multiple Files are easy to follow Empty Re: Multiple Files are easy to follow

Post by Sponsored content


Sponsored content


Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum