Friday, February 26, 2010

How to write a code in C++ that outputs a house drawing on the screen?

The question is:





Write a program in C++ that allows the user to design their own house. Your program should use at least 5 graphical objects and at least 3 different types of graphical objects (Line, Rectangle, Circle, Triangle, Message, etc.). Your program should ask the user to click where they want the object, (door, window, roof, etc.) and then draw it there.





You may alternatively choose to have the user design something other than a house, like a motorcylce, car, or whatever you want, as long as you keep to the minimum number of objects and types of objects.





I don't even know where to start..Help please !How to write a code in C++ that outputs a house drawing on the screen?
It depends on what OS and GUI you are using - e.g. Linux with Gnome, Mac OS X, WIndows, etc ?

No comments:

Post a Comment