Hi On 1 computer this is valid:
string str1;
on the other it isn't? what include files are needed to define the string class? thanks Gary
you just need
#include <string>
then the string class with all its methods is available!
btw, what compiler are you using?
thomas
Thanks
I'm using the new 5.0 beta.
I had the .h extension so I guess it was pulling in the wrong one.
Thanks again Gary
Log in to post a comment.
Hi
On 1 computer this is valid:
string str1;
on the other it isn't? what include files are needed to define the string class? thanks Gary
you just need
#include <string>
then the string class with all its methods is available!
btw, what compiler are you using?
thomas
Thanks
I'm using the new 5.0 beta.
I had the .h extension so I guess it was pulling in the wrong one.
Thanks again
Gary