Just playing with C++ and made my own class string.
My question is this. I create my string like so:
and it works fine. The question I have thought is this:
I have a function
BOOL getText( LPSTR sValue )
sValue = "Testing";
I would like to do something like this:
if( getText( sValue.size(50) ) == TRUE )
where size is a member of class string
LPSTR size( int nSize );
I know this is like CString in MFC, but I would like to know how this works. As you know my code doesnt work b/c Im not sure what how to write the size() portion of the code.
When I compile it I get an error
not sure what the inside of size() function should look like.