RE: stl std::string issue

  • From: "Sean Farrow" <sean.farrow@xxxxxxxxxxxxxxxx>
  • To: <programmingblind@xxxxxxxxxxxxx>
  • Date: Mon, 26 Nov 2007 16:01:24 -0000

Hi: 
Thanks, everything works as expected.
Sean. 

-----Original Message-----
From: programmingblind-bounce@xxxxxxxxxxxxx 
[mailto:programmingblind-bounce@xxxxxxxxxxxxx] On Behalf Of Marlon Brandão de 
Sousa
Sent: 26 November 2007 15:35
To: programmingblind@xxxxxxxxxxxxx
Subject: Re: stl std::string issue

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

__________
View the list's information and change your settings at
//www.freelists.org/list/programmingblind

Other related posts: