You have a very valid point. Since he asked how to do it I simply told him the best way. I think it is important both to learn to use the STL and understand it.
Type: Posts; User: grey616
You have a very valid point. Since he asked how to do it I simply told him the best way. I think it is important both to learn to use the STL and understand it.
What you just described is already part of the STL. It is a hash map although it is implemented differently. Binary searches and many other useful algorithms are also part of the STL. Additionally...
SHOULD be using, not have to be using. Arrays and structs are perfectly legal in C++, but so are goto statements. The point is that if you are not using classes and vectors you are not utilizing the...
First of all this is C++, not C so you should be using a vector of classes not an array of structs. Here is a link to the STL http://www.sgi.com/tech/stl/ where you can look up everything you need...
id like to know how to code a function that performs some action periodically until a stoping condition is reached. for example, id like it to display and record the output of a temperature sensor...