String Length not working

I followed the tutorial and I just got stuck at some point
where I’m getting the MyWordLength.Length

I’m getting this error whenever
Error C3867 ‘std::basic_string<char,std::char_traits,std::allocator>::length’: non-standard syntax; use ‘&’ to create a pointer to member BullsCows

Line 41, do you see the error? The error is with MyHiddenWord.length

I tried to print it out the string MyHiddenWord
its printing out the value
but When i try to get length I’m getting some error which is not understandable
I tried to google it out , but still didn’t got it

There’s an error on line 41. length is a function not a variable.

Thanks mate ,got it .
I’m coming from c# background that’s why I thought it was a variable

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.