Run with me
2011-04-27 23:08:11 UTC
I'm working on a program that draws a checker board on the screen through fltk using some files specialized for my programming class. the files were taken from a book written by Bjarne Stroustrup.
Basically, I have a class for the window. In the main function, I can create the window, create shapes to put in the window, and put the shapes in the window.
One of the restrictions of my project is that we have a small number of commands in each function. When I try to create shapes outside the main function, it gives me an error saying that the shape class is private, even when I put this code directly in the window class.
How can I fix this so I can create shapes outside the main function?
Thanks!
How can I fix this error.