Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problem holding values in an array

Status
Not open for further replies.

Antzelinaki

Programmer
Jun 16, 2012
14
0
0
Hello everybody.
I have a class Queen with row, col properties and I am declaring variable Queens as a list of Queens because it represents 8 queens with their positions (row,col) Public Queens As New Collections.Generic.List(Of Queen)
So, I need an array that holds 92 solutions of the 8 Queens for each element.
I tried to declare it exactly Dim solutions(92) but unfortunately
Solutions array doesn't hold the values :(
When I run the program I can get only the first element of solutions array solutions(0). What can I do to have an array of 92 elements so that to keep stored in it all of the elements??? Any help will be much appreciated.

Thank you so much in advanced
 
Post the code where you're filling the solutions() array.


I used to rock and roll every night and party every day. Then it was every other day. Now I'm lucky if I can find 30 minutes a week in which to get funky. - Homer Simpson

Arrrr, mateys! Ye needs ta be preparin' yerselves fer Talk Like a Pirate Day!
 
Thank you so much jebenson. I finally found it by my own.
Public solutions(92) As List(Of Queen) and it was ok. :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top