Reputation: 107
How to effectively design a C++ modular program? How to learn?
Upvotes: 3
Views: 5375
Reputation: 57749
For a beginner, you may want to take the "brute force" process:
1. Write a simple main
function in one file.
2. Add some functionality, compile then test.
3. Refactor (use this keyword in Google).
Here are some guidelines for refactoring (not all of them may apply at the same time):
An alternative is to design a program into functional blocks and data structures. Repeat until the blocks and classes are simple enough for a non-programmer to understand. Then start implementing. Test Driven Development is a good process to use.
Upvotes: 5
Reputation: 392010
Read this: http://www.amazon.com/Large-Scale-Software-Design-John-Lakos/dp/0201633620
Upvotes: 1
Reputation: 490663
About the only answers to that kind of question that can even hope to fit in an answer here would be advice on books to read.
Upvotes: 1
Reputation: 57625
Here's a ton of books especially about that - http://www.aristeia.com/books.html
Upvotes: 1