Hi all,
I'm having trouble with finding a descent string class, I don't want to use the MFC CString class, is there any other that I could use?
thanks,
DOnal
Hi all,
I'm having trouble with finding a descent string class, I don't want to use the MFC CString class, is there any other that I could use?
thanks,
DOnal
you could try using the string objects in <string.h>
There's std::string.
http://www.dinkumware.com/htm_cpl/string2.html
or
http://www.dinkumware.com/htm_cpl/string.html
choose one of the two i guess?
you could try apstring. Its the AP college board's string class. downloadable for free.
I've heard about that before. Where are the details on that??
What's wrong with the standard string class?
>you could try using the string objects in <string.h>
You mean <string>
-Prelude
My best code is written with the delete key.
Thanks for the tips, but I can't seem to get any of the string classes to work.
e.g.
#include<String.h>
void main()
{
string mystring;
basic_string mystring1;
String mystring3;
}
none of these will work, I get "undeclared identifier" for each one.
Any Ideas or examples??
Thanks,
Donal
ps I'm using MS Visual C++ 6.0
You need to include <string>, not <string.h> then
string mystring;
will work if you bring the whole of the std namespace into global scope, or just std::string. Either -
using namespace std;
or
using std::string;
Also main returns an int not void.