I see what you mean about the const char*, my confusion, however it is
interesting that the const char* does work without flaw when hardcoding
all values. Such as their set values and their "find" values.
const char* student1 = "Student";
StudentClass* pSc;
studentList[student1] = pSc;
//from another function- studentName is a const char* passed in with
value of "Student"
studentList.find(studentName);
//returns the correct values
Also, on the Microsoft Visual Studio .NET 2002 version in C++ hash_map
strings will not work at all. It compiles with an error when you try to
use hash_map <string, studentclass*>
I do not mean to be objectionable but this is what has happened over a
month of my work with these hash_maps under Microsoft Visual STudio .Net
It also upsets me because we had bought the .NET solely for its hash_map
capabilities. If it helps any we need the hash_maps here to work the
same as in LISP.
Thanks again!!
*** Sent via Developersdex
http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!