is there a way of using or declarin string objects without using
#include <string>
using std::string; ?????????????
racoon8995 0 Light Poster
Recommended Answers
Jump to PostNO
Jump to Post@firstPerson: That's because YOUR compiler lets you do that. vc++ 2010 will not.
@Sky: You still have to include the header file for your version of the string slcass. So its not even "technically possible". You need to include the string header file regardless of whose class it is …
Jump to Post@Sky: But that's not answering the OP's question. I think he wants to use the string class that's in STL. Writing your own isn't the same thing, nor would it even be desireable outside the adademic area of a university.
Jump to Post@AD: <string> is technically part of the C++ standard library, not the C++ standard template library (STL), these are two distinct libraries.
All 13 Replies
mike_2000_17 2,669 21st Century Viking Team Colleague Featured Poster
racoon8995 0 Light Poster
mrnutty 761 Senior Poster
mike_2000_17 2,669 21st Century Viking Team Colleague Featured Poster
Sky Diploma 571 Practically a Posting Shark
mike_2000_17 2,669 21st Century Viking Team Colleague Featured Poster
Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster
Sky Diploma 571 Practically a Posting Shark
Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster
mike_2000_17 2,669 21st Century Viking Team Colleague Featured Poster
Ancient Dragon commented: right +31
Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster
racoon8995 0 Light Poster
vijayan121 1,152 Posting Virtuoso
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.