Jump to content
  • Advertisement


This topic is now archived and is closed to further replies.


Breaking down a problem into classes

This topic is 6106 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi all, I am having a major problem, I have gone through the Sams C++ book and I am cool with all the syntax. However I have come to write a very basic program and I cannot think of how to break the areas down into classes at all. It is like I have a mental block and no matter how much code I look at or how many times I re-read the book I still cannot hear a click sound. What I have thought is, a class breakdown of a bag of cement would be something like: - class Cement { public: int sand(int); int Water(int); int cementmix(int); int bag; Its then thinking about the functions that I just go blank and cannot think what to put. Anyhelp would be great. Sprite

Share this post

Link to post
Share on other sites

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!