Lets say we have a Matrix program in C++, and we are using template, I want to know if you have an example of a situation in which it would be useful to create a matrix of bools. How about a matrix of strings?
Is there any situation in which it would be useful to create a matrix of bools or string in C++?
mmm.. yeah... think about it. name yes/no
Reply:a matrix of bools could represent a very simple bitmap (in black/white), or possibly a map of some kind that indicates specific points of interest.
if it's a sparse-matrix, then you can get away with simulating it using a chained hashtable, which will save memory %26amp; time.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment