On 11/16/06, mr_gees100_peas <[EMAIL PROTECTED]> wrote: > The library <string.h> is a C library. the C++ version is <string>.
Confusingly, it isn't. The C++ version of <string.h> is <cstring>. <string> is for std::string. > Again witout the .h at the end. These are two different libraries. In > C if you want to copy one string to another you can use strcpy just > like you are doing below. However, if you use the C++ equivalent > <string> then you do not use strcpy or strcmp or all the others. You > can get away with something like: > > name=name+"none"; > or > name=+"none"; Addition like this only works for std::string. You must still use strcpy() (from <cstring>)for char*. -- PJH #700847 +(1920)- [X] andyg721: i think it was on CNN andyg721: Condoleeza Rice went to Asia andyg721: the headline was RICE IN ASIA
