Please anyone who is a competant ( ?) coder look at my problem! Please first see the attached picture so you'll know what I'm on about.
Now, all the black boxes are "subjects", and the columns are all the "lines" that the subjects can possibly fit in. I have to be able to check every combination of subjects against a datafile of the subjects each student has chosen to minimise the amount of clashes.
To do this, I want to write the position of every subject for every combination to a file. How would this be done assuming any data you want is in an array and more importantly that the number of black boxes is a variable, whereas the columns are a constant (7)
Now, all the black boxes are "subjects", and the columns are all the "lines" that the subjects can possibly fit in. I have to be able to check every combination of subjects against a datafile of the subjects each student has chosen to minimise the amount of clashes.
To do this, I want to write the position of every subject for every combination to a file. How would this be done assuming any data you want is in an array and more importantly that the number of black boxes is a variable, whereas the columns are a constant (7)