riskbreaker927
April 13th, 2009, 03:44 PM
I'm taking a C programming course at my university. For my final I have to write a program that will parse a text-based maze and display the solution to it. That much is easy, so for extra credit I've opted to create a GTK UI for the program. I want to be able to display the maze within the window.
I plan to do this by reading the maze (using fscanf) into a two dimensional array, with each member being either a space or a wall, then using two nested for loops to generate the widgets for each array member into a table. My question is: would this work? Can you use for loops to draw GTK widgets?
I plan to do this by reading the maze (using fscanf) into a two dimensional array, with each member being either a space or a wall, then using two nested for loops to generate the widgets for each array member into a table. My question is: would this work? Can you use for loops to draw GTK widgets?