Archives
D Programming
DD.gnu digitalmars.D digitalmars.D.bugs digitalmars.D.dtl digitalmars.D.dwt digitalmars.D.announce digitalmars.D.learn digitalmars.D.debugger C/C++ Programming
c++c++.announce c++.atl c++.beta c++.chat c++.command-line c++.dos c++.dos.16-bits c++.dos.32-bits c++.idde c++.mfc c++.rtl c++.stl c++.stl.hp c++.stl.port c++.stl.sgi c++.stlsoft c++.windows c++.windows.16-bits c++.windows.32-bits c++.wxwindows digitalmars.empire digitalmars.DMDScript |
c++ - string.h
Hi all I am including string.h in my code, but when I use the class string I get an error from the compiler that it`s an unknown identifier. any ideas? thanks Igal Nov 25 2003
using std::string; or using namespace std; ? C "someone" <ipivin hotmail.com> wrote in message news:bq03pn$2pv2$1 digitaldaemon.com...Hi all I am including string.h in my code, but when I use the class string I get Nov 25 2003
Also , are you trying to using string.h from cstdlib, or std::string's string. If the latter, then the new convention is to not include the .h at the end, ie #include <string> #include <iostream> and the old C headers are now #include <cstring> #include <cstdio> etc... just FYI. C "Charles Sanders" <sanders-consulting comcast.net> wrote in message news:bq0482$2qmr$1 digitaldaemon.com...using std::string; or using namespace std; ? C "someone" <ipivin hotmail.com> wrote in message news:bq03pn$2pv2$1 digitaldaemon.com...Hi all I am including string.h in my code, but when I use the class string I Nov 25 2003
|