How do we declare var that would only be determined at run time? Say I would create a1, a2, a3...and so on but the number of var is not determined initially.
@vlad from moscow, Thumper - thanks. I have read about the containers and I guess my problem was making the correct format to make the a container work. I have formulated a format to use vectors, I'll have it tested this weekend.
As I have mentioned, I am writing a chess engine code. I am now at the stage of storing sequences of generated positions for evaluation.
Yes, you can make a vector of anything as long as the type meets a few requirements. Off the top of my head, I think it must be default constructable and copyable, but there may be others.