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 PostThis compiles in visual studio 2008 express edition:
#include <iostream> using namespace std; int main(){ string name = "lol"; }
Jump to Post@firstPerson: That's just because <string> is probably included by <iostream>.
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.