MC felon wrote:
i work on TC++ (some old version). Please suggest something that works
in the same.
Please quote enough of the message you are replying to to provide
context. On its own, your message is meaningless. To do that from
Google Groups, don't use the broken Reply link at the bottom of the
message. Instead, click the Show Options link at the top and use the
Reply link revealed there. Thanks.
To answer your question, did you #include<string >, the standard header
that defines the C++ string class (and puts it in namespace std)?
As to your compiler, if you can't get this
#include <string>
std::string some_func()
{
std::string str;
// something;
return str;
}
to compile, you haven't got a hope of learning or writing C++ with that
compiler. Fortunately, there are sevral up-to-date and free C++
compilers available for you to upgrade to. If you're on Windows,
Microsoft's VC++8 compiler is free for example, and there are other
options. If you're on a different platform there will, I am sure, be
other options too.
Gavin Deane