Re: Strange code in C++. Please help
you mean you assigned a string variable to your class and it accepted the string? I don't see that happening because you didn't define the operator = to do so and I don't see
jstring = b
anywhere in your code.
I see the opposite
b = jstring
which makes string class be assigned from your class and that is possible with the cast operator you have in your class
unless I am not understanding you. also please learn how to use the code tag. aka
0100 0111 0110 1111 0110 0100 0010 0000 0110 1001 0111 0011 0010 0000 0110 0110 0110 1111 0111 0010
0110 0101 0111 0110 0110 0101 0111 0010 0010 0001 0010 0001 0000 0000 0000 0000 0000 0000 0000 0000