using namespace std;
void main(void)
{
string MyStr;
MyStr = "asdfasdf";
and so on.....
}
[...]
> [By the way, I've had success using other standard header
> files like iostream.h; it's just string I'm having a problem with.]
> Thanks for any advice.
FYI, iostream.h is NOT a standard header; the standard header is
<iostream>, <iostream.h> implements "classical" iostreams. (I'm not
sure what exactly what the differences are aside from namespace, but
since the documentation makes a distinction I don't doubt they exist.)
See the two previous replies for the answer to your main question.
Most notably, <iostream.h> doesn't understand std::string, nor UNICODE
characters. I think the manipulators are also a bit different.
--
Truth,
James Curran
http://www.NJTheater.com (Professional)
http://www.NovelTheory.com (Personal)
http://www.BrandsForLess.com (Day Job)