|
-
August 19th, 2004, 01:21 PM
#17
 Originally Posted by hebes_99
Thanks for the support CJ!
In responce to the string class / library, I tried to use that, but can't seem to get it to work.
#include<string>
void test()
{
string str;
str = "This is a test";
}
this returns the following
error C2065: 'string' : undeclared identifier (among other errors..)
I also tried #include <string.h> ...so, I gave up on this. But I do know that the string class would solve a lot of my problems!
string is located in the std namespace. Either use:
using namespace std;
to promote the library names to the current namespace
or
std::string str;
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|