The same way you make a C++ program to do anything. Start out with either pseudo-code or a flowchart. Then figure out what data structures you're going to use (you can skip that for a problem this simple). Then plan out the functions. Then code the functions. Then write the main function. Then test. Then debug.
No comments:
Post a Comment