Re: stl std::string issue

  • From: "Marlon Brandão de Sousa" <splyt.lists@xxxxxxxxx>
  • To: programmingblind@xxxxxxxxxxxxx
  • Date: Mon, 26 Nov 2007 13:34:42 -0200

Hello, use length(). This is a method and not a data-member. A simple
google solved this. When using things in stl try to look for a
reference, as it will make things easier for you:
www.cprogramming.com/tutorial/string.html
Marlon

2007/11/26, Sean Farrow <sean.farrow@xxxxxxxxxxxxxxxx>:
> Hi:
> I am trying to use the std::string class.
> I have the following code to test:
> std::string Temp="test";
>
> int NLen =Temp.length;
>
> When compiling I get the following error:
>
> error 3867 refering to the std::basicString I don't know why I get this
> error, as the syntax seems fin.
>
> Any help apreciated.
>
> Sean.
>
>


-- 
When you say "I wrote a program that crashed Windows," people just
stare at you blankly and say "Hey, I got those with the system, for
free."
Linus Torvalds
__________
View the list's information and change your settings at 
//www.freelists.org/list/programmingblind

Other related posts: