string class and stl in GNU

how do you declare variables as strings?? Or you have to declare them as
char array?

in watcom compiler, you can simply include <String.h>, since the string
operators
are being implemented in there like +, !=, =, = =.

Also, in watcom stl, there is sorted and ordered vector, where you can store
objects in there,
is ther anything similiar in gnu? In help, where can I find al the
information reguarding gnu’s stl?

ran zhang <rzhang@vamcointernational.com> wrote:

how do you declare variables as strings?? Or you have to declare them as
char array?

in watcom compiler, you can simply include <String.h>, since the string
operators
are being implemented in there like +, !=, =, = =.

You can declare variables as strings and include in your program,
for more info follow below links.

Also, in watcom stl, there is sorted and ordered vector, where you can store
objects in there,
is ther anything similiar in gnu? In help, where can I find al the
information reguarding gnu’s stl?

GNU’s(6.0.x) STL used sgi’s standards:
http://www.sgi.com/tech/stl/

Dinkum’S (6.1.x) STL:
http://www.dinkumware.com/htm_cpl/index.html
http://www.dinkumware.com/htm_cpl/lib_stl.html

I hope this will help :wink:

Regards,

Marcin

In article <9ur2q5$pl$1@inn.qnx.com>,
ran zhang <rzhang@vamcointernational.com> wrote:

how do you declare variables as strings?? Or you have to declare them as
char array?

in watcom compiler, you can simply include <String.h>, since the string
operators
are being implemented in there like +, !=, =, = =.

Also, in watcom stl, there is sorted and ordered vector, where you can store
objects in there,
is ther anything similiar in gnu? In help, where can I find al the
information reguarding gnu’s stl?

The Watcom implementation was based on an earlier and in progress
version of C++. These days, you would #include
and then make use of std::string as the string type.

Greg Comeau export ETA: December
Comeau C/C++ ONLINE ==> http://www.comeaucomputing.com/tryitout
World Class Compilers: Breathtaking C++, Amazing C99, Fabulous C90.
Comeau C/C++ with Dinkumware’s Libraries… Have you tried it?